From 77b8ccd9dcc10ea9ca2b0d76009308872e964ba0 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Wed, 24 Nov 2004 10:39:19 +0000 Subject: Work around a bug in curl when displaying progress for an authentified http source (bug #12289) --- urpm/download.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'urpm') diff --git a/urpm/download.pm b/urpm/download.pm index 8bcb298f..7078fb11 100644 --- a/urpm/download.pm +++ b/urpm/download.pm @@ -336,7 +336,9 @@ sub sync_curl { close $curl; return; } - if ($_ eq "\n") { + #- this regexp checks that download has actually started + #- (work around a bug in curl 7.12.2 output for auth sources) + if ($_ eq "\n" && $buf !~ /--:--:-- --:--:-- --:--:--/) { propagate_sync_callback($options, 'end', $file); $file = undef; } -- cgit v1.2.1