diff options
Diffstat (limited to 'urpm/download.pm')
-rw-r--r-- | urpm/download.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm/download.pm b/urpm/download.pm index 38dea72c..23b2d273 100644 --- a/urpm/download.pm +++ b/urpm/download.pm @@ -349,7 +349,7 @@ sub sync_curl { } #- this regexp checks that download has actually started #- (work around a bug in curl 7.12.2 output when 302 answers are involved) - if ($_ eq "\n" && $buf !~ /--:--:--/) { + if ($_ eq "\n" && ($percent == 100 || $buf !~ /--:--:--/)) { propagate_sync_callback($options, 'end', $file); $file = undef; } |