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.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index 1645ed201..0fde2512c 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -838,13 +838,15 @@ sub sessions_with_order() {
}
sub urpmi_add_all_media {
- my ($in) = @_;
+ my ($in, $b_update) = @_;
#- configure urpmi media if network is up
require network::tools;
return if !network::tools::has_network_connection();
my $_wait = $in->wait_message(N("Please wait"), N("Please wait, adding media..."));
- run_program::rooted($::prefix, 'urpmi.addmedia', '--distrib', '--mirrorlist', '$MIRRORLIST');
+ run_program::rooted($::prefix, 'urpmi.addmedia',
+ if_($b_update, '--update'),
+ '--distrib', '--mirrorlist', '$MIRRORLIST');
}
sub autologin {