summaryrefslogtreecommitdiffstats
path: root/perl-install/install_any.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-07-31 15:18:09 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-07-31 15:18:09 +0000
commit51039844febe1dc7c3f7ac5b3409f00e1679ab76 (patch)
tree1852183fcf4865ea2c78c5acc8a67d731f13df11 /perl-install/install_any.pm
parented72bb62ca097fa7a874953b9fad9a60b04fed63 (diff)
downloaddrakx-backup-do-not-use-51039844febe1dc7c3f7ac5b3409f00e1679ab76.tar
drakx-backup-do-not-use-51039844febe1dc7c3f7ac5b3409f00e1679ab76.tar.gz
drakx-backup-do-not-use-51039844febe1dc7c3f7ac5b3409f00e1679ab76.tar.bz2
drakx-backup-do-not-use-51039844febe1dc7c3f7ac5b3409f00e1679ab76.tar.xz
drakx-backup-do-not-use-51039844febe1dc7c3f7ac5b3409f00e1679ab76.zip
replace "$foo" with $foo
Diffstat (limited to 'perl-install/install_any.pm')
-rw-r--r--perl-install/install_any.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index 14565b100..8159ffe19 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -267,7 +267,7 @@ sub getAvailableSpace {
sub getAvailableSpace_mounted {
my ($prefix) = @_;
- my $dir = -d "$prefix/usr" ? "$prefix/usr" : "$prefix";
+ my $dir = -d "$prefix/usr" ? "$prefix/usr" : $prefix;
my (undef, $free) = MDK::Common::System::df($dir) or return;
log::l("getAvailableSpace_mounted $free KB");
$free * 1024 || 1;
@@ -936,7 +936,7 @@ sub guess_mount_point {
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 && -e "$_/.bashrc" } glob_("$d")) ? '/home' : '';
+ $mnt ||= (grep { -d $_ && (stat($_))[4] >= 500 && -e "$_/.bashrc" } glob_($d)) ? '/home' : '';
($mnt, $handle);
}