summaryrefslogtreecommitdiffstats
path: root/urpm/removable.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-02-26 19:18:56 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-02-26 19:18:56 +0000
commitdec10ebdfba6eaff29a909cbb5052c74a73cfce4 (patch)
treed17615874e9316edba48bcf5ea6bbb4c16b34321 /urpm/removable.pm
parent7802d075c4e3de9ca51eaff3f63a8bdb50f7b598 (diff)
downloadurpmi-dec10ebdfba6eaff29a909cbb5052c74a73cfce4.tar
urpmi-dec10ebdfba6eaff29a909cbb5052c74a73cfce4.tar.gz
urpmi-dec10ebdfba6eaff29a909cbb5052c74a73cfce4.tar.bz2
urpmi-dec10ebdfba6eaff29a909cbb5052c74a73cfce4.tar.xz
urpmi-dec10ebdfba6eaff29a909cbb5052c74a73cfce4.zip
add some comments
Diffstat (limited to 'urpm/removable.pm')
-rw-r--r--urpm/removable.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/urpm/removable.pm b/urpm/removable.pm
index 31c920ed..ed5dc63f 100644
--- a/urpm/removable.pm
+++ b/urpm/removable.pm
@@ -10,11 +10,14 @@ use urpm 'file_from_local_url';
#- returns the removable device name if it corresponds to an iso image, '' otherwise
+#-
+#- side-effects: none
sub is_iso {
my ($removable_dev) = @_;
$removable_dev && $removable_dev =~ /\.iso$/i;
}
+#- side-effects: $urpm->{removable_mounted}, mount
sub try_mounting {
my ($urpm, $dir, $o_removable) = @_;
my %infos;
@@ -42,6 +45,7 @@ sub try_mounting {
-e $dir;
}
+#- side-effects: $urpm->{removable_mounted}, umount
sub try_umounting {
my ($urpm, $dir) = @_;