[Mageia-sysadm] [128] use iurt_root_command to add additional media
root at mageia.org
root at mageia.org
Wed Nov 24 00:36:42 CET 2010
Revision: 128
Author: blino
Date: 2010-11-24 00:36:41 +0100 (Wed, 24 Nov 2010)
Log Message:
-----------
use iurt_root_command to add additional media
Modified Paths:
--------------
build_system/iurt/trunk/lib/Iurt/Urpmi.pm
Modified: build_system/iurt/trunk/lib/Iurt/Urpmi.pm
===================================================================
--- build_system/iurt/trunk/lib/Iurt/Urpmi.pm 2010-11-23 22:46:39 UTC (rev 127)
+++ build_system/iurt/trunk/lib/Iurt/Urpmi.pm 2010-11-23 23:36:41 UTC (rev 128)
@@ -215,12 +215,13 @@
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)) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101124/9c192e3c/attachment-0001.html>
More information about the Mageia-sysadm
mailing list