summaryrefslogtreecommitdiffstats
path: root/perl-install/any.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-08-28 15:30:46 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-08-28 15:30:46 +0000
commit4c17ae5cc3872a6638b4e22d1bf0f12f50972547 (patch)
tree4e5262600726f3253ebb589db48deab9a40cd580 /perl-install/any.pm
parent524f6d5e74cb463add8ab32e9e3ff4f8ccabe609 (diff)
downloaddrakx-backup-do-not-use-4c17ae5cc3872a6638b4e22d1bf0f12f50972547.tar
drakx-backup-do-not-use-4c17ae5cc3872a6638b4e22d1bf0f12f50972547.tar.gz
drakx-backup-do-not-use-4c17ae5cc3872a6638b4e22d1bf0f12f50972547.tar.bz2
drakx-backup-do-not-use-4c17ae5cc3872a6638b4e22d1bf0f12f50972547.tar.xz
drakx-backup-do-not-use-4c17ae5cc3872a6638b4e22d1bf0f12f50972547.zip
fix previous commit:
- move the "require" where it's needed - split the comment so that it correctly describes things
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r--perl-install/any.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index 5eff4702f..1645ed201 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -840,6 +840,8 @@ sub sessions_with_order() {
sub urpmi_add_all_media {
my ($in) = @_;
+ #- 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');