summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-02-26 20:13:41 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-02-26 20:13:41 +0000
commit88d14550c00cf4d2aeb54ccd56b407aa17aa4521 (patch)
tree3c9d793ae84626fe845b329fe5d77c66d738fbc7
parent1e644fce19ac143afcb0de8c7475e3f8349264c6 (diff)
downloadurpmi-88d14550c00cf4d2aeb54ccd56b407aa17aa4521.tar
urpmi-88d14550c00cf4d2aeb54ccd56b407aa17aa4521.tar.gz
urpmi-88d14550c00cf4d2aeb54ccd56b407aa17aa4521.tar.bz2
urpmi-88d14550c00cf4d2aeb54ccd56b407aa17aa4521.tar.xz
urpmi-88d14550c00cf4d2aeb54ccd56b407aa17aa4521.zip
simplify
-rw-r--r--urpm/removable.pm8
1 files changed, 2 insertions, 6 deletions
diff --git a/urpm/removable.pm b/urpm/removable.pm
index 7885653a..8acdd6c0 100644
--- a/urpm/removable.pm
+++ b/urpm/removable.pm
@@ -219,16 +219,12 @@ sub copy_packages_of_removable_media {
grep { $_ ne $already_mounted_medium } @sorted_media);
}
- #- mount all except the biggest one.
- my $biggest = pop @sorted_media;
foreach (@sorted_media) {
_examine_removable_medium($urpm, $list, $sources, $_, $device, $o_ask_for_medium);
}
- #- now mount the last one...
- $removables{$device} = [ $biggest ];
+ } else {
+ _examine_removable_medium($urpm, $list, $sources, $removables{$device}[0], $device, $o_ask_for_medium);
}
-
- _examine_removable_medium($urpm, $list, $sources, $removables{$device}[0], $device, $o_ask_for_medium);
}
1;