summaryrefslogtreecommitdiffstats
path: root/perl-install/ftp.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/ftp.pm')
-rw-r--r--perl-install/ftp.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/ftp.pm b/perl-install/ftp.pm
index d1a7ac241..014fe7237 100644
--- a/perl-install/ftp.pm
+++ b/perl-install/ftp.pm
@@ -54,7 +54,8 @@ sub getFile {
my $f = shift;
my ($ftp, $retr) = new(@_ ? @_ : fromEnv);
$$retr->close if $$retr;
- $$retr = $ftp->retr(install_any::relGetFile($f));
+ $$retr = $ftp->retr(install_any::relGetFile($f)) or rewindGetFile();
+ $$retr ||= $ftp->retr(install_any::relGetFile($f));
}
sub rewindGetFile() {