From 2d073593eb27703476f21ca68d7f85a5342eb5b2 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 16 Oct 2008 09:15:06 +0000 Subject: extract error from aria2 log instead of giving it raw --- urpm/download.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'urpm') 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"; -- cgit v1.2.1