diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2000-08-28 21:16:32 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2000-08-28 21:16:32 +0000 |
commit | ff872004f6d5f202a6a8cd418bad3b2458d2ed66 (patch) | |
tree | 984a3ea576f9090b2aad069550b65a6595c04d4c /perl-install/install_any.pm | |
parent | c047aee8e84b723f6910defab8b0de8063502490 (diff) | |
download | drakx-backup-do-not-use-ff872004f6d5f202a6a8cd418bad3b2458d2ed66.tar drakx-backup-do-not-use-ff872004f6d5f202a6a8cd418bad3b2458d2ed66.tar.gz drakx-backup-do-not-use-ff872004f6d5f202a6a8cd418bad3b2458d2ed66.tar.bz2 drakx-backup-do-not-use-ff872004f6d5f202a6a8cd418bad3b2458d2ed66.tar.xz drakx-backup-do-not-use-ff872004f6d5f202a6a8cd418bad3b2458d2ed66.zip |
no_comment
Diffstat (limited to 'perl-install/install_any.pm')
-rw-r--r-- | perl-install/install_any.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm index 8485fc163..11d57f120 100644 --- a/perl-install/install_any.pm +++ b/perl-install/install_any.pm @@ -120,10 +120,10 @@ sub getFile { require crypto; log::l("crypto::getFile $f"); crypto::getFile($f); - } elsif ($method eq "ftp") { + } elsif ($::o->{method} eq "ftp") { require ftp; ftp::getFile($rel); - } elsif ($method eq "http") { + } elsif ($::o->{method} eq "http") { require http; http::getFile($rel); } else { @@ -623,6 +623,7 @@ sub suggest_mount_points { my $d = $handle->{dir}; my ($mnt) = grep { -e "$d/$l{$_}" } keys %l; $mnt ||= (stat("$d/.bashrc"))[4] ? '/root' : '/home/user' . ++$user if -e "$d/.bashrc"; + $mnt ||= (grep { -d $_ && (stat($_))[4] >= 500 } glob_("$d")) && '/home'; next if $uniq && fsedit::mntpoint2part($mnt, \@parts); $part->{mntpoint} = $mnt; |