diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Iurt/Urpmi.pm | 5 |
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; |