diff options
author | Dexter Morgan <dmorgan@mageia.org> | 2010-11-04 17:37:18 +0000 |
---|---|---|
committer | Dexter Morgan <dmorgan@mageia.org> | 2010-11-04 17:37:18 +0000 |
commit | fddb01e4b1225adfb9adeb6f9e8b6032170c68ce (patch) | |
tree | 1178567dfa0799bbf117f08a585fe0a41c2c7f6d /lib/Iurt | |
parent | a12f26be8174be4cfd367bc3930da04091cc5083 (diff) | |
download | iurt-fddb01e4b1225adfb9adeb6f9e8b6032170c68ce.tar iurt-fddb01e4b1225adfb9adeb6f9e8b6032170c68ce.tar.gz iurt-fddb01e4b1225adfb9adeb6f9e8b6032170c68ce.tar.bz2 iurt-fddb01e4b1225adfb9adeb6f9e8b6032170c68ce.tar.xz iurt-fddb01e4b1225adfb9adeb6f9e8b6032170c68ce.zip |
wrap urpmi.addmedia in iurt_root_command
Diffstat (limited to 'lib/Iurt')
-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 dd55a59..83d2d23 100644 --- a/lib/Iurt/Urpmi.pm +++ b/lib/Iurt/Urpmi.pm @@ -197,10 +197,11 @@ sub add_media__urpmi_root { plog("adding distrib $self->{distrib_url} with option --urpmi-root in chroot $chroot"); - perform_command("sudo urpmi.addmedia -v --urpmi-root $chroot --distrib $self->{distrib_url} --probe-synthesis", + perform_command("urpmi-addmedia -v --urpmi-root $chroot --distrib $self->{distrib_url} --probe-synthesis", $run, $config, $cache, mail => $config->{admin}, timeout => 300, + use_iurt_root_command => 1, freq => 1, retry => 2, debug_mail => $run->{debug}); |