summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-02-27 18:52:49 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-02-27 18:52:49 +0000
commitdbc34f06828d0813e90e3987bb9938f6dea4853d (patch)
treee1fbf046a08e354805ee2058ccd90a4e2703e0fe /urpm
parent76368f9f0bf1742b08ac53c1de30018b3b662d7f (diff)
downloadurpmi-dbc34f06828d0813e90e3987bb9938f6dea4853d.tar
urpmi-dbc34f06828d0813e90e3987bb9938f6dea4853d.tar.gz
urpmi-dbc34f06828d0813e90e3987bb9938f6dea4853d.tar.bz2
urpmi-dbc34f06828d0813e90e3987bb9938f6dea4853d.tar.xz
urpmi-dbc34f06828d0813e90e3987bb9938f6dea4853d.zip
drop useless check
Diffstat (limited to 'urpm')
-rw-r--r--urpm/removable.pm20
1 files changed, 1 insertions, 19 deletions
diff --git a/urpm/removable.pm b/urpm/removable.pm
index bc1082ea..be1c0c84 100644
--- a/urpm/removable.pm
+++ b/urpm/removable.pm
@@ -168,24 +168,6 @@ sub _check_notfound {
0;
}
-#- removable media have to be examined to keep mounted the one that has
-#- more packages than others.
-#-
-#- side-effects:
-#- + those of _copy_from_cdrom_ ($urpm->{removable_mounted}, $sources, "mount", "umount", "eject", "copy-move-files")
-sub _copy_from_cdrom {
- my ($urpm, $blist, $sources, $o_ask_for_medium) = @_;
-
- my $medium = $blist->{medium};
-
- if (is_local_medium($medium)) {
- _copy_from_cdrom_($urpm, $blist, $sources, $o_ask_for_medium);
- } else {
- #- we have a removable device that is not removable, well...
- $urpm->{error}(N("inconsistent medium \"%s\" marked removable but not really", $medium->{name}));
- }
-}
-
#- side-effects: "eject"
#- + those of _mount_and_check_notfound ($urpm->{removable_mounted}, "mount")
#- + those of try_umounting ($urpm->{removable_mounted}, "umount")
@@ -239,7 +221,7 @@ sub _do_the_copy {
#- side-effects: $sources
#- + those of _mount_it ($urpm->{removable_mounted}, "mount", "umount", "eject")
#- + those of _do_the_copy: "copy-move-files"
-sub _copy_from_cdrom_ {
+sub _copy_from_cdrom {
my ($urpm, $blist, $sources, $o_ask_for_medium) = @_;
_mount_it($urpm, $blist, $o_ask_for_medium);