diff options
author | Pascal Terjan <pterjan@mageia.org> | 2017-10-04 09:31:16 +0100 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2017-10-04 09:31:16 +0100 |
commit | 767f597849c23ea28e7731ad6c835ec190b0206f (patch) | |
tree | 6d1c33d65148e519a78b18cd403855aec689b098 /lib/Iurt/Chroot.pm | |
parent | 7f45a579b350d4ff449994a92fa3f76919302f01 (diff) | |
download | iurt-767f597849c23ea28e7731ad6c835ec190b0206f.tar iurt-767f597849c23ea28e7731ad6c835ec190b0206f.tar.gz iurt-767f597849c23ea28e7731ad6c835ec190b0206f.tar.bz2 iurt-767f597849c23ea28e7731ad6c835ec190b0206f.tar.xz iurt-767f597849c23ea28e7731ad6c835ec190b0206f.zip |
Fix creating new reference chroot
Diffstat (limited to 'lib/Iurt/Chroot.pm')
-rw-r--r-- | lib/Iurt/Chroot.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Iurt/Chroot.pm b/lib/Iurt/Chroot.pm index 0d23fe0..1bf019e 100644 --- a/lib/Iurt/Chroot.pm +++ b/lib/Iurt/Chroot.pm @@ -416,8 +416,10 @@ sub build_chroot { plog('ERROR', "urpmi.addmedia --urpmi-root failed"); return 0; } + $urpmi->set_command__urpmi_root($tmp_chroot); + } else { + $urpmi->set_command__use_distrib($tmp_chroot); } - $urpmi->set_command($tmp_chroot); # (blino) install meta-task first for prefer.vendor.list to be used foreach my $packages ([ 'meta-task' ], $config->{basesystem_packages}) { |