From 7628c081a10cae1c445bb1bdc283d0ea463dbc5c Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 22 Nov 2007 16:49:05 +0000 Subject: use --urpmi_root instead of --use-distrib when the repository is http|ftp --- lib/Iurt/Chroot.pm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/Iurt/Chroot.pm') diff --git a/lib/Iurt/Chroot.pm b/lib/Iurt/Chroot.pm index 25829b5..546a2ca 100644 --- a/lib/Iurt/Chroot.pm +++ b/lib/Iurt/Chroot.pm @@ -529,6 +529,12 @@ sub build_chroot { # install chroot my $urpmi = $run->{urpmi}; + if ($urpmi->{use__urpmi_root}) { + if (!$urpmi->add_media__urpmi_root($tmp_chroot)) { + plog('ERROR', "urpmi.addmedia --urpmi-root failed"); + return 0; + } + } $urpmi->set_command($tmp_chroot); # 20060826 warly urpmi --root does not work properly -- cgit v1.2.1