summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-05-16 14:42:49 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-05-16 14:42:49 +0000
commita939fa9ccc78e0117dc6f128e2b81e436af734ff (patch)
treedf2ded1eb540ed72d61039cde6b0ac15ec3609e7
parent6c10071d5ab0d684b74b21ccc1d903bb949be2f2 (diff)
downloadurpmi-a939fa9ccc78e0117dc6f128e2b81e436af734ff.tar
urpmi-a939fa9ccc78e0117dc6f128e2b81e436af734ff.tar.gz
urpmi-a939fa9ccc78e0117dc6f128e2b81e436af734ff.tar.bz2
urpmi-a939fa9ccc78e0117dc6f128e2b81e436af734ff.tar.xz
urpmi-a939fa9ccc78e0117dc6f128e2b81e436af734ff.zip
nicer code
-rw-r--r--urpm/download.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/urpm/download.pm b/urpm/download.pm
index e4fed74c..255dee77 100644
--- a/urpm/download.pm
+++ b/urpm/download.pm
@@ -305,9 +305,10 @@ sub sync_curl {
$_ = "$proto://$nick:$rest";
}
if (m|^ftp://.*/([^/]*)$| && file_size($1) > 8192) { #- manage time stamp for large file only
- push @ftp_files, $_; next;
+ push @ftp_files, $_;
+ } else {
+ push @other_files, $_;
}
- push @other_files, $_;
}
if (@ftp_files) {
my ($cur_ftp_file, %ftp_files_info);