summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-03-03 13:34:48 +0000
committerFrancois Pons <fpons@mandriva.com>2003-03-03 13:34:48 +0000
commitfb6e321b3f3aee499b7e6f0eb4bb0172baf8a0c3 (patch)
treee25683954bb9e721b2b3d962f826f8b68afeb5de /urpm.pm
parent30ad005780bcda08e61119dba6746f6d7f261b21 (diff)
downloadurpmi-fb6e321b3f3aee499b7e6f0eb4bb0172baf8a0c3.tar
urpmi-fb6e321b3f3aee499b7e6f0eb4bb0172baf8a0c3.tar.gz
urpmi-fb6e321b3f3aee499b7e6f0eb4bb0172baf8a0c3.tar.bz2
urpmi-fb6e321b3f3aee499b7e6f0eb4bb0172baf8a0c3.tar.xz
urpmi-fb6e321b3f3aee499b7e6f0eb4bb0172baf8a0c3.zip
4.2-27mdk
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm.pm b/urpm.pm
index 0e3ab2ab..c8ed13a9 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -1794,7 +1794,7 @@ sub try_mounting {
my %infos;
$dir = reduce_pathname($dir);
- foreach (grep { ! $infos{$_}{mounted} } $urpm->find_mntpoints($dir, \%infos)) {
+ foreach (grep { ! $infos{$_}{mounted} && $infos{$_}{fs} ne 'supermount' } $urpm->find_mntpoints($dir, \%infos)) {
$urpm->{log}(_("mounting %s", $_));
`mount '$_' 2>/dev/null`;
$removable && $infos{$_}{fs} ne 'supermount' and $urpm->{removable_mounted}{$_} = undef;
@@ -1807,7 +1807,7 @@ sub try_umounting {
my %infos;
$dir = reduce_pathname($dir);
- foreach ($urpm->find_mntpoints($dir, 'umount')) {
+ foreach (reverse grep { $infos{$_}{mounted} && $infos{$_}{fs} ne 'supermount' } $urpm->find_mntpoints($dir, \%infos)) {
$urpm->{log}(_("unmounting %s", $_));
`umount '$_' 2>/dev/null`;
delete $urpm->{removable_mounted}{$_};