aboutsummaryrefslogtreecommitdiffstats
path: root/iurt_root_command
diff options
context:
space:
mode:
authorDexter Morgan <dmorgan@mageia.org>2010-11-04 17:37:18 +0000
committerDexter Morgan <dmorgan@mageia.org>2010-11-04 17:37:18 +0000
commitfddb01e4b1225adfb9adeb6f9e8b6032170c68ce (patch)
tree1178567dfa0799bbf117f08a585fe0a41c2c7f6d /iurt_root_command
parenta12f26be8174be4cfd367bc3930da04091cc5083 (diff)
downloadiurt-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 'iurt_root_command')
-rwxr-xr-xiurt_root_command6
1 files changed, 6 insertions, 0 deletions
diff --git a/iurt_root_command b/iurt_root_command
index cd0fedd..af51ef5 100755
--- a/iurt_root_command
+++ b/iurt_root_command
@@ -159,6 +159,7 @@ $run{todo} = [];
my %commands_with_more_args = (
"--urpmi" => [ \&urpmi, "urpmi" ],
+ "--urpmi-addmedia" => [ \&urpmi_addmedia, "urpmi.addmedia" ],
"--chroot" => [ \&run_chroot, "chroot" ],
);
@@ -448,6 +449,11 @@ sub urpmi {
return check_urpmi_chroot_options(\@options) && !system('urpmi', @options);
}
+sub urpmi_addmedia {
+ my ($_run, @options) = @_;
+ return check_urpmi_chroot_options(\@options) && !system('urpmi.addmedia', @options);
+}
+
sub run_chroot {
my ($_run, $dir, @options) = @_;
if (!$dir) {