From fba45b1178d82a0ee495eb39c1bb6bd7232a49d9 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 6 Dec 2012 16:13:21 +0000 Subject: (setPackages,configure_media) extract call to urpm::media::configure() (needed for next commits) --- perl-install/install/any.pm | 4 ++++ perl-install/install/media.pm | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'perl-install/install') diff --git a/perl-install/install/any.pm b/perl-install/install/any.pm index d349a5eb5..4871c7c29 100644 --- a/perl-install/install/any.pm +++ b/perl-install/install/any.pm @@ -341,6 +341,10 @@ sub setPackages { } } + # actually read synthesis now we have all the ones we want: + require urpm::media; + urpm::media::configure($urpm); + install::media::adjust_paths_in_urpmi_cfg($urpm); log::l('urpmi completely set up'); diff --git a/perl-install/install/media.pm b/perl-install/install/media.pm index d821ab8e2..659f73136 100644 --- a/perl-install/install/media.pm +++ b/perl-install/install/media.pm @@ -504,7 +504,6 @@ sub configure_media { my ($packages) = @_; urpm::media::update_media($packages, distrib => 1, callback => \&urpm::download::sync_logger) or log::l('updating media failed'); - urpm::media::configure($packages); } sub get_media { -- cgit v1.2.1