From ea32e8c90d5d64f23386078cbb9cf2c541bfe795 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Mon, 5 Sep 2005 08:53:01 +0000 Subject: On top of previous fix --- urpm/download.pm | 4 ++-- 1 file 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, $_; } } -- cgit v1.2.1