summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-10-16 09:15:06 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-10-16 09:15:06 +0000
commit2d073593eb27703476f21ca68d7f85a5342eb5b2 (patch)
tree2c4ba47ac5593f0014e2405b18ddfc7b334deca4
parent0bfe26fdb005576a43bccbdfb79f11ad1837f40b (diff)
downloadurpmi-2d073593eb27703476f21ca68d7f85a5342eb5b2.tar
urpmi-2d073593eb27703476f21ca68d7f85a5342eb5b2.tar.gz
urpmi-2d073593eb27703476f21ca68d7f85a5342eb5b2.tar.bz2
urpmi-2d073593eb27703476f21ca68d7f85a5342eb5b2.tar.xz
urpmi-2d073593eb27703476f21ca68d7f85a5342eb5b2.zip
extract error from aria2 log instead of giving it raw
-rw-r--r--urpm/download.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm/download.pm b/urpm/download.pm
index 14c0b753..9abe039d 100644
--- a/urpm/download.pm
+++ b/urpm/download.pm
@@ -703,8 +703,8 @@ sub sync_aria2 {
if ($buf =~ m!Download\scomplete:\s\./!) {
propagate_sync_callback($options, 'end', $file);
$file = undef;
- } elsif ($buf =~ /ERR\|/) {
- propagate_sync_callback($options, 'error', $file, $buf);
+ } elsif ($buf =~ /ERR\|(.*)/) {
+ propagate_sync_callback($options, 'error', $file, $1);
}
} else {
$options->{quiet} or print STDERR "$buf\n";