summaryrefslogtreecommitdiffstats
path: root/urpm/download.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm/download.pm')
-rw-r--r--urpm/download.pm4
1 files changed, 3 insertions, 1 deletions
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;
}