diff options
author | Olivier Blin <blino@mageia.org> | 2010-11-23 23:36:41 +0000 |
---|---|---|
committer | Olivier Blin <blino@mageia.org> | 2010-11-23 23:36:41 +0000 |
commit | 8c425b58b3553690fa5bcef92c40ec0c8ffc58a1 (patch) | |
tree | 5fea61df0d18416be7a8dae98a2e97a31fa7e9d4 /lib/Iurt/Urpmi.pm | |
parent | f8c2c4c889fb0672e254d9fd21f1be240eb90d67 (diff) | |
download | iurt-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.pm | 3 |
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)) { |