summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--urpm.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/urpm.pm b/urpm.pm
index 428c24ec..c09183b3 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -327,6 +327,8 @@ sub sync_curl {
$file = undef;
}
} elsif ($buf =~ /^curl:/) { #- probably an error reported by curl
+ local $/ = "\n";
+ chomp $buf;
propagate_sync_callback($options, 'error', $file, $buf);
}
} else {