summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}