From b7360f3aa7903c1cf2169aa1631f9d2f0786882d Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 8 Jul 2008 17:37:17 +0000 Subject: remove obsolete urpm::removable::copy_packages_of_removable_media(), call urpm::cdrom::copy_packages_of_removable_media() directly --- urpm/main_loop.pm | 3 ++- urpm/removable.pm | 5 ----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/urpm/main_loop.pm b/urpm/main_loop.pm index f9ac014e..9da3e3c6 100644 --- a/urpm/main_loop.pm +++ b/urpm/main_loop.pm @@ -54,7 +54,8 @@ my %sources = %$local_sources; urpm::removable::try_mounting_non_cdroms($urpm, $list); $callbacks->{pre_removable} and $callbacks->{pre_removable}->(); -urpm::removable::copy_packages_of_removable_media($urpm, +require urpm::cdrom; +urpm::cdrom::copy_packages_of_removable_media($urpm, $list, \%sources, $callbacks->{copy_removable}); $callbacks->{post_removable} and $callbacks->{post_removable}->(); diff --git a/urpm/removable.pm b/urpm/removable.pm index e1c69469..6e392ddd 100644 --- a/urpm/removable.pm +++ b/urpm/removable.pm @@ -155,9 +155,4 @@ sub create_blists { } @$media ]; } -sub copy_packages_of_removable_media { - require urpm::cdrom; - &urpm::cdrom::copy_packages_of_removable_media; -} - 1; -- cgit v1.2.1