From 1f861b9b1f66765ab4ab32277c10f9e83d26747c Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 26 Feb 2008 19:21:45 +0000 Subject: add some comments --- urpm/removable.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'urpm/removable.pm') 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}}) { -- cgit v1.2.1