summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-02-17 16:10:59 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-02-17 16:10:59 +0000
commit7afeb8dd3f34d8c1d4d1cb36a424bc3d13bc9766 (patch)
treee023a56d471afa773e3e6ad127b3eb7aa1e2dea6
parent7aed6d9fd78cd074e45e6a13842143358c3c86ab (diff)
downloadurpmi-7afeb8dd3f34d8c1d4d1cb36a424bc3d13bc9766.tar
urpmi-7afeb8dd3f34d8c1d4d1cb36a424bc3d13bc9766.tar.gz
urpmi-7afeb8dd3f34d8c1d4d1cb36a424bc3d13bc9766.tar.bz2
urpmi-7afeb8dd3f34d8c1d4d1cb36a424bc3d13bc9766.tar.xz
urpmi-7afeb8dd3f34d8c1d4d1cb36a424bc3d13bc9766.zip
Work around bug 13685, bug in display of curl progress
-rw-r--r--urpm/download.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/urpm/download.pm b/urpm/download.pm
index 8de73e07..bcbc9105 100644
--- a/urpm/download.pm
+++ b/urpm/download.pm
@@ -349,7 +349,9 @@ sub sync_curl {
return;
}
#- this checks that download has actually started
- if ($_ eq "\n") {
+ if ($_ eq "\n"
+ && !($speed == 0 && $percent == 100 && index($eta, '--') >= 0) #- work around bug 13685
+ ) {
propagate_sync_callback($options, 'end', $file);
$file = undef;
}