summaryrefslogtreecommitdiffstats
path: root/urpm/download.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-12-09 22:38:15 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-12-09 22:38:15 +0000
commit9e314f55e66fcd0933b9391f0c6ce775ea583d18 (patch)
tree5b917fd514857c6478c114234e66d54f46cf5715 /urpm/download.pm
parent0e4543b00bfabc9a2dee562975d43623bb969f7c (diff)
downloadurpmi-9e314f55e66fcd0933b9391f0c6ce775ea583d18.tar
urpmi-9e314f55e66fcd0933b9391f0c6ce775ea583d18.tar.gz
urpmi-9e314f55e66fcd0933b9391f0c6ce775ea583d18.tar.bz2
urpmi-9e314f55e66fcd0933b9391f0c6ce775ea583d18.tar.xz
urpmi-9e314f55e66fcd0933b9391f0c6ce775ea583d18.zip
With curl, urpmi wasn't detecting the end of a download, thus the file
name displayed in the console or progress bar was never refreshed.
Diffstat (limited to 'urpm/download.pm')
-rw-r--r--urpm/download.pm2
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;
}