summaryrefslogtreecommitdiffstats
path: root/perl-install/install/media.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/install/media.pm')
-rw-r--r--perl-install/install/media.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/perl-install/install/media.pm b/perl-install/install/media.pm
index 54ae9001b..082bb4457 100644
--- a/perl-install/install/media.pm
+++ b/perl-install/install/media.pm
@@ -491,6 +491,13 @@ sub select_only_some_media {
}
}
+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 {
my ($o, $media, $packages) = @_;
use Data::Dumper;