summaryrefslogtreecommitdiffstats
path: root/perl-install/any.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r--perl-install/any.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index 92af852bd..1512f48c1 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -1024,6 +1024,9 @@ sub urpmi_add_all_media {
log::l("no network connexion!");
return;
}
+ # First remove all media:
+ run_program::rooted($::prefix, 'urpmi.removemedia', '-a');
+ # Then add online media:
my $wait;
my @options = ('--distrib', '--mirrorlist', '$MIRRORLIST');
if ($binary eq 'urpmi.addmedia') {