summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorOlivier Blin <blino@mageia.org>2013-04-08 22:33:34 +0000
committerOlivier Blin <blino@mageia.org>2013-04-08 22:33:34 +0000
commita245a127583b9c873c42b73dae9405d577d23687 (patch)
tree574c5914297f7242698a60c13d51ac2a072e6c3c /perl-install/standalone
parent476d7b74c00d8625e282f4ab3def41004e481594 (diff)
downloaddrakx-backup-do-not-use-a245a127583b9c873c42b73dae9405d577d23687.tar
drakx-backup-do-not-use-a245a127583b9c873c42b73dae9405d577d23687.tar.gz
drakx-backup-do-not-use-a245a127583b9c873c42b73dae9405d577d23687.tar.bz2
drakx-backup-do-not-use-a245a127583b9c873c42b73dae9405d577d23687.tar.xz
drakx-backup-do-not-use-a245a127583b9c873c42b73dae9405d577d23687.zip
finish-install: configure urpmi media even if local media are configured, and only if online media are not setup (for live)
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/finish-install4
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/standalone/finish-install b/perl-install/standalone/finish-install
index 57298ebf7..8682a9a5f 100755
--- a/perl-install/standalone/finish-install
+++ b/perl-install/standalone/finish-install
@@ -119,7 +119,9 @@ sub ask_network() {
sub ask_urpmi() {
#- configure urpmi media if no media are configured
- run_program::get_stdout('urpmq', '--list-media') and return;
+ my @media_url = map { top(split(' ', $_)) } run_program::get_stdout('urpmq', '--list-url');
+ my @online_media = grep { !m,^(?:file://)?/, } @media_url;
+ @online_media and return;
any::urpmi_add_all_media($in);
}