From 8b9440eface197f7d010d94696972bc7f28ea4de Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 23 Mar 2011 18:37:42 +0000 Subject: install meta-task first for prefer.vendor.list to be used --- lib/Iurt/Chroot.pm | 27 +++++++++++++++------------ 1 file 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; + } } # URPMI saying ok or not, we check this anyway. So that's why -- cgit v1.2.1