summaryrefslogtreecommitdiffstats
path: root/perl-install/ftp.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2000-01-05 10:48:46 +0000
committerFrancois Pons <fpons@mandriva.com>2000-01-05 10:48:46 +0000
commita130ec1291fed0faabfc8051f990f6765f1eabe1 (patch)
tree6003da55772ec84c01633b43d0e56075da4697b1 /perl-install/ftp.pm
parent7375c014ce40d54d6199645fcf030e992448b930 (diff)
downloaddrakx-a130ec1291fed0faabfc8051f990f6765f1eabe1.tar
drakx-a130ec1291fed0faabfc8051f990f6765f1eabe1.tar.gz
drakx-a130ec1291fed0faabfc8051f990f6765f1eabe1.tar.bz2
drakx-a130ec1291fed0faabfc8051f990f6765f1eabe1.tar.xz
drakx-a130ec1291fed0faabfc8051f990f6765f1eabe1.zip
*** empty log message ***
Diffstat (limited to 'perl-install/ftp.pm')
-rw-r--r--perl-install/ftp.pm11
1 files changed, 11 insertions, 0 deletions
diff --git a/perl-install/ftp.pm b/perl-install/ftp.pm
index c1b93fec4..350619c23 100644
--- a/perl-install/ftp.pm
+++ b/perl-install/ftp.pm
@@ -56,3 +56,14 @@ sub getFile($) {
$$retr->close if $$retr;
$$retr = $ftp->retr(install_any::relGetFile($f));
}
+
+sub rewindGetFile() {
+ #- close any existing connection.
+ foreach (values %hosts) {
+ my ($ftp) = @{$_ || []};
+ $ftp->close() if $ftp;
+ }
+
+ #- make sure to reconnect to server.
+ %hosts = ();
+}