diff options
Diffstat (limited to 'perl-install/crypto.pm')
-rw-r--r-- | perl-install/crypto.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/crypto.pm b/perl-install/crypto.pm index 927a7de15..76821f38c 100644 --- a/perl-install/crypto.pm +++ b/perl-install/crypto.pm @@ -108,8 +108,8 @@ sub dir { $mirrors{$_[0]}[1] . ($::corporate && '/corporate' || '') . '/' . vers sub ftp($) { ftp::new($_[0], dir($_[0])) } sub getFile { - my ($file, $host) = @_; - $host ||= $crypto::host; + my ($file, $o_host) = @_; + my $host = $o_host || $crypto::host; my $dir = dir($host) . ($file =~ /\.rpm$/ && "/RPMS"); log::l("getting crypto file $file on directory $dir with login $mirrors{$host}[2]"); my ($ftp, $retr) = ftp::new($host, $dir, |