summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-09-05 08:53:01 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-09-05 08:53:01 +0000
commitea32e8c90d5d64f23386078cbb9cf2c541bfe795 (patch)
treeaf0afe5527a327d1ff7235fe1002a0c07fc46eed
parentcbb346bd3a06f1af56581a7f34d424bc6e29941d (diff)
downloadurpmi-ea32e8c90d5d64f23386078cbb9cf2c541bfe795.tar
urpmi-ea32e8c90d5d64f23386078cbb9cf2c541bfe795.tar.gz
urpmi-ea32e8c90d5d64f23386078cbb9cf2c541bfe795.tar.bz2
urpmi-ea32e8c90d5d64f23386078cbb9cf2c541bfe795.tar.xz
urpmi-ea32e8c90d5d64f23386078cbb9cf2c541bfe795.zip
On top of previous fix
-rw-r--r--urpm/download.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm/download.pm b/urpm/download.pm
index 05383a1a..fd5ea90b 100644
--- a/urpm/download.pm
+++ b/urpm/download.pm
@@ -320,8 +320,8 @@ sub sync_curl {
foreach (keys %ftp_files_info) {
my ($lfile) = m|/([^/]*)$| or next; #- strange if we can't parse it correctly.
my $ltime = eval { Date::Manip::ParseDate(scalar gmtime((stat $1)[9])) };
- $ltime or next; #- couldn't parse date, assume files are different (bug 18234)
- -s $lfile == $ftp_files_info{$_}{size} && $ftp_files_info{$_}{time} eq $ltime
+ warn" --- $ltime\n";
+ $ltime && -s $lfile == $ftp_files_info{$_}{size} && $ftp_files_info{$_}{time} eq $ltime
or push @ftp_files, $_;
}
}