aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2012-04-02 10:56:26 +0000
committerPascal Terjan <pterjan@mageia.org>2012-04-02 10:56:26 +0000
commit5897dfcd1d044676d9917d1c1a21efce11830c0c (patch)
tree21945c2b52c3ccd488fc63aca4d1b4a20c801b64
parent231248ba039bd1dfc77ddf61efae5c79ea191d68 (diff)
downloadiurt-5897dfcd1d044676d9917d1c1a21efce11830c0c.tar
iurt-5897dfcd1d044676d9917d1c1a21efce11830c0c.tar.gz
iurt-5897dfcd1d044676d9917d1c1a21efce11830c0c.tar.bz2
iurt-5897dfcd1d044676d9917d1c1a21efce11830c0c.tar.xz
iurt-5897dfcd1d044676d9917d1c1a21efce11830c0c.zip
Request Core instead of Main when using --distrib
-rw-r--r--lib/Iurt/Urpmi.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Iurt/Urpmi.pm b/lib/Iurt/Urpmi.pm
index 13bcbff..5b28c8d 100644
--- a/lib/Iurt/Urpmi.pm
+++ b/lib/Iurt/Urpmi.pm
@@ -105,8 +105,9 @@ sub urpmi_command {
}
}
} else {
- if (!add_media($self, $chroot_tmp, 'Main', "--distrib $run->{chrooted_media}")) {
- if (!add_media($self, $chroot_tmp, 'Main', "--wget --distrib $run->{chrooted_media}")) {
+ # FIXME Do not hardcode Core
+ if (!add_media($self, $chroot_tmp, 'Core', "--distrib $run->{chrooted_media}")) {
+ if (!add_media($self, $chroot_tmp, 'Core', "--wget --distrib $run->{chrooted_media}")) {
$run->{chrooted_urpmi} = 0;
plog('ERROR', "Failed to add media $run->{chrooted_media}. Disabling chrooted_urpmi.");
return;