From dbc34f06828d0813e90e3987bb9938f6dea4853d Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 27 Feb 2008 18:52:49 +0000 Subject: drop useless check --- urpm/removable.pm | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'urpm') 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); -- cgit v1.2.1