summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm')
-rw-r--r--urpm/main_loop.pm3
-rw-r--r--urpm/removable.pm5
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;