diff options
author | Francois Pons <fpons@mandriva.com> | 2002-02-11 16:49:51 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2002-02-11 16:49:51 +0000 |
commit | 7e8d4209fe2421d7c68e505b16afeabe16ee3ed6 (patch) | |
tree | eb3d480f0954d9b85318f21449f405fc528dbf68 | |
parent | c94c26159caf8d176e03c822745704dc77be95aa (diff) | |
download | urpmi-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.pm | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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}; } } |