diff options
Diffstat (limited to 'iurt2')
-rwxr-xr-x | iurt2 | 39 |
1 files changed, 33 insertions, 6 deletions
@@ -275,12 +275,39 @@ $run{todo} = []; ($run{with_flags}) = $run{with_flags} . " --without " . @_[0]; 1; }, "Adding specified extra --without parameter to rpm" ], - [ "", "additional-media", 1, "<path>", - "Includes an additional media", - sub { - $run{additional_media} ||= []; - push @{$run{additional_media}}, @_[0]; - }, "Adding an additional media" ], + # [ short option, long option, # of args, syntax description, + # action description, action, execution message ] + ############################# + [ "", "additional-media", + [ + [ "", "additional-media", 1, "", + "Use additional medias (media prefix is like http:///server.mandriva.com/dis/)", + sub { + my ($tmp, @arg) = @_; + $tmp->[0] ||= {}; + push @$tmp, @arg; + 1; + }, "Setting additional medias options" + ], + [ "m", "media", -1, "<media1> <media2> ... <median>", + "Media to add instead of --distrib", + sub { + my ($tmp, @media) = @_; + $tmp->[0]{media} = \@media; + 1 + }, "Limiting rebuild to the kernel in the given media regexp" + ], + ], + "[options] <media prefix>", + "Also uses these medias (media prefix is like http:///server.mandriva.com/dis/)", + sub { + my ($opt, $media) = @_; + $opt->{repository} = $media; + $run{additional_media} = $opt; + 1 + }, "Activating additional medias" + ], + ############################### [ "", "icecream", 1, "<procs>", "Enables icecream usage by <procs> procs", sub { |