From 9e314f55e66fcd0933b9391f0c6ce775ea583d18 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Thu, 9 Dec 2004 22:38:15 +0000 Subject: 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. --- urpm/download.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'urpm') 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; } -- cgit v1.2.1