From 954c4f6e095f26d1e195dc6295c60c1eaeaa3e39 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Fri, 19 Nov 2004 11:12:55 +0000 Subject: Cope better with some strange curl output --- urpm/download.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'urpm') diff --git a/urpm/download.pm b/urpm/download.pm index a9a309ed..8bcb298f 100644 --- a/urpm/download.pm +++ b/urpm/download.pm @@ -330,7 +330,7 @@ sub sync_curl { $file = shift @l; propagate_sync_callback($options, 'start', $file); } - if (my ($percent, $total, $eta, $speed) = $buf =~ /^\s*(\d+)\s+(\S+)[^\r\n]*\s+(\S+)\s+(\S+)[\r\n]$/ms) { + if (my ($percent, $total, $eta, $speed) = $buf =~ /^\s*(\d+)\s+(\S+)[^\r\n]*\s+(\S+)\s+-?(\S+)\s*[\r\n]$/ms) { if (propagate_sync_callback($options, 'progress', $file, $percent, $total, $eta, $speed) eq 'canceled') { kill 15, $curl_pid; close $curl; -- cgit v1.2.1