summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-02-26 19:21:45 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-02-26 19:21:45 +0000
commit1f861b9b1f66765ab4ab32277c10f9e83d26747c (patch)
tree8152c6dee31604f03101c9ffde40ec7f30fad79c /urpm
parentf1def83292058be5c38cde16ae8121aba20eade2 (diff)
downloadurpmi-1f861b9b1f66765ab4ab32277c10f9e83d26747c.tar
urpmi-1f861b9b1f66765ab4ab32277c10f9e83d26747c.tar.gz
urpmi-1f861b9b1f66765ab4ab32277c10f9e83d26747c.tar.bz2
urpmi-1f861b9b1f66765ab4ab32277c10f9e83d26747c.tar.xz
urpmi-1f861b9b1f66765ab4ab32277c10f9e83d26747c.zip
add some comments
Diffstat (limited to 'urpm')
-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}}) {