aboutsummaryrefslogtreecommitdiffstats
path: root/iurt_root_command
diff options
context:
space:
mode:
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) {