aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Iurt/Urpmi.pm
diff options
context:
space:
mode:
authorOlivier Blin <blino@mageia.org>2010-11-23 23:36:41 +0000
committerOlivier Blin <blino@mageia.org>2010-11-23 23:36:41 +0000
commit8c425b58b3553690fa5bcef92c40ec0c8ffc58a1 (patch)
tree5fea61df0d18416be7a8dae98a2e97a31fa7e9d4 /lib/Iurt/Urpmi.pm
parentf8c2c4c889fb0672e254d9fd21f1be240eb90d67 (diff)
downloadiurt-8c425b58b3553690fa5bcef92c40ec0c8ffc58a1.tar
iurt-8c425b58b3553690fa5bcef92c40ec0c8ffc58a1.tar.gz
iurt-8c425b58b3553690fa5bcef92c40ec0c8ffc58a1.tar.bz2
iurt-8c425b58b3553690fa5bcef92c40ec0c8ffc58a1.tar.xz
iurt-8c425b58b3553690fa5bcef92c40ec0c8ffc58a1.zip
use iurt_root_command to add additional media
Diffstat (limited to 'lib/Iurt/Urpmi.pm')
-rw-r--r--lib/Iurt/Urpmi.pm3
1 files changed, 2 insertions, 1 deletions
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)) {