summaryrefslogtreecommitdiffstats
path: root/urpm/download.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-04-22 10:42:52 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-04-22 10:42:52 +0000
commit21f4f7adc6ee28d6599ea7647d789cd6de59d0a4 (patch)
tree92fda232fb3db6c21a85a4dc173b13569db5b44f /urpm/download.pm
parent668d54454c118beb0db294717ee3a9c23b1b7ab8 (diff)
downloadurpmi-21f4f7adc6ee28d6599ea7647d789cd6de59d0a4.tar
urpmi-21f4f7adc6ee28d6599ea7647d789cd6de59d0a4.tar.gz
urpmi-21f4f7adc6ee28d6599ea7647d789cd6de59d0a4.tar.bz2
urpmi-21f4f7adc6ee28d6599ea7647d789cd6de59d0a4.tar.xz
urpmi-21f4f7adc6ee28d6599ea7647d789cd6de59d0a4.zip
More refactorization. Some silencing of the warnings emitted by -w.
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 05bb4d52..f273b7aa 100644
--- a/urpm/download.pm
+++ b/urpm/download.pm
@@ -163,7 +163,7 @@ sub sync_curl {
chdir($options->{dir});
my (@ftp_files, @other_files);
foreach (@_) {
- m|^ftp://.*/([^/]*)$| && -s $1 > 8192 and do {
+ m|^ftp://.*/([^/]*)$| && -e $1 && -s _ > 8192 and do {
push @ftp_files, $_; next;
}; #- manage time stamp for large file only.
push @other_files, $_;