summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2002-02-11 16:49:51 +0000
committerFrancois Pons <fpons@mandriva.com>2002-02-11 16:49:51 +0000
commit7e8d4209fe2421d7c68e505b16afeabe16ee3ed6 (patch)
treeeb3d480f0954d9b85318f21449f405fc528dbf68
parentc94c26159caf8d176e03c822745704dc77be95aa (diff)
downloadurpmi-7e8d4209fe2421d7c68e505b16afeabe16ee3ed6.tar
urpmi-7e8d4209fe2421d7c68e505b16afeabe16ee3ed6.tar.gz
urpmi-7e8d4209fe2421d7c68e505b16afeabe16ee3ed6.tar.bz2
urpmi-7e8d4209fe2421d7c68e505b16afeabe16ee3ed6.tar.xz
urpmi-7e8d4209fe2421d7c68e505b16afeabe16ee3ed6.zip
fixed find_mntpoints to avoid mounting multiple times or never umounting.
-rw-r--r--urpm.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm.pm b/urpm.pm
index 5aee5533..3258ee3f 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -1077,8 +1077,8 @@ sub find_mntpoints {
$pdir .= "/$_";
$pdir =~ s,/+,/,g; $pdir =~ s,/$,,;
if (exists $fstab{$pdir}) {
- $mode eq 'mount' && ! $fstab{$_} and push @mntpoints, $pdir;
- $mode eq 'umount' && $fstab{$_} and unshift @mntpoints, $pdir;
+ $mode eq 'mount' && ! $fstab{$pdir} and push @mntpoints, $pdir;
+ $mode eq 'umount' && $fstab{$pdir} and unshift @mntpoints, $pdir;
$mode eq 'device' and push @mntpoints, $pdir, $fstab{$pdir};
}
}