summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2001-03-11 23:49:51 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2001-03-11 23:49:51 +0000
commit3283593e6701012da131a4ed168cc9984e291662 (patch)
tree8962d23713d8432580bbf5f92cb904282f5cfd49 /perl-install
parent13d375b1c48e6078b64c0e0ae0f49e1b89c5c6f7 (diff)
downloaddrakx-3283593e6701012da131a4ed168cc9984e291662.tar
drakx-3283593e6701012da131a4ed168cc9984e291662.tar.gz
drakx-3283593e6701012da131a4ed168cc9984e291662.tar.bz2
drakx-3283593e6701012da131a4ed168cc9984e291662.tar.xz
drakx-3283593e6701012da131a4ed168cc9984e291662.zip
do not retry on 550 file unavailable
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/ftp.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/ftp.pm b/perl-install/ftp.pm
index 06ae86c33..20b837b8c 100644
--- a/perl-install/ftp.pm
+++ b/perl-install/ftp.pm
@@ -55,6 +55,7 @@ sub getFile {
my ($ftp, $retr) = new(@para ? @para : fromEnv);
$$retr->close if $$retr;
$$retr = $ftp->retr($f) and return $$retr;
+ ($ftp->code == 550) and log::l("FTP: 550 file unavailable"), return;
rewindGetFile();
log::l("ftp get failed, sleeping before trying again");
sleep 1;