summaryrefslogtreecommitdiffstats
path: root/urpm/removable.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm/removable.pm')
-rw-r--r--urpm/removable.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/urpm/removable.pm b/urpm/removable.pm
index d4a95c90..0a2e9481 100644
--- a/urpm/removable.pm
+++ b/urpm/removable.pm
@@ -59,12 +59,15 @@ sub try_umounting {
! -e $dir;
}
+#- side-effects: none
sub _mounted_mntpoints {
my ($dir) = @_;
my %info;
grep { $infos{$_}{mounted} } urpm::sys::find_mntpoints($dir, \%info);
}
+#- side-effects: $urpm->{removable_mounted}
+#- + those of try_umounting ($urpm->{removable_mounted}, umount)
sub try_umounting_removables {
my ($urpm) = @_;
foreach (keys %{$urpm->{removable_mounted}}) {