diff options
author | Olivier Blin <blino@mageia.org> | 2011-03-23 18:37:42 +0000 |
---|---|---|
committer | Olivier Blin <blino@mageia.org> | 2011-03-23 18:37:42 +0000 |
commit | 8b9440eface197f7d010d94696972bc7f28ea4de (patch) | |
tree | 8f9afb52e327fb2046d7fdc1b30b19bfc3fab25c | |
parent | a839e942270ab0c15c8d19f6a41e20384904cc3f (diff) | |
download | iurt-8b9440eface197f7d010d94696972bc7f28ea4de.tar iurt-8b9440eface197f7d010d94696972bc7f28ea4de.tar.gz iurt-8b9440eface197f7d010d94696972bc7f28ea4de.tar.bz2 iurt-8b9440eface197f7d010d94696972bc7f28ea4de.tar.xz iurt-8b9440eface197f7d010d94696972bc7f28ea4de.zip |
install meta-task first for prefer.vendor.list to be used
-rw-r--r-- | lib/Iurt/Chroot.pm | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/lib/Iurt/Chroot.pm b/lib/Iurt/Chroot.pm index 8e6e51a..06e0421 100644 --- a/lib/Iurt/Chroot.pm +++ b/lib/Iurt/Chroot.pm @@ -510,18 +510,21 @@ sub build_chroot { } $urpmi->set_command($tmp_chroot); - if (!$urpmi->install_packages( - "chroot", - $tmp_chroot, - $run->{local_spool}, - {}, - 'initialize', - "[ADMIN] creation of initial chroot failed on $run->{my_arch}", - { maintainer => $config->{admin} }, - @{$opt->{packages}} - )) { - plog('ERROR', "Failed to install initial packages during chroot creation."); - return 0; + # (blino) install meta-task first for prefer.vendor.list to be used + foreach my $packages ([ 'meta-task' ], $opt->{packages}) { + if (!$urpmi->install_packages( + "chroot", + $tmp_chroot, + $run->{local_spool}, + {}, + 'initialize', + "[ADMIN] creation of initial chroot failed on $run->{my_arch}", + { maintainer => $config->{admin} }, + @$packages + )) { + plog('ERROR', "Failed to install initial packages during chroot creation."); + return 0; + } } # <mrl> URPMI saying ok or not, we check this anyway. So that's why |