From 8c425b58b3553690fa5bcef92c40ec0c8ffc58a1 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 23 Nov 2010 23:36:41 +0000 Subject: use iurt_root_command to add additional media --- lib/Iurt/Urpmi.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Iurt/Urpmi.pm b/lib/Iurt/Urpmi.pm index 86b5090..33d322a 100644 --- a/lib/Iurt/Urpmi.pm +++ b/lib/Iurt/Urpmi.pm @@ -215,12 +215,13 @@ sub add_media { plog("add chroot media: $run->{chrooted_media}"); - if (!perform_command("sudo chroot $chroot urpmi.addmedia $media", + if (!perform_command("urpmi-addmedia $media", $run, $config, $cache, mail => $config->{admin}, timeout => 300, freq => 1, retry => 2, + use_iurt_root_command => 1, debug_mail => $run->{debug})) { } if (!check_media_added($chroot, $regexp)) { -- cgit v1.2.1