diff options
author | Marcelo Leitner <mrl@mandriva.com> | 2007-06-15 17:18:23 +0000 |
---|---|---|
committer | Marcelo Leitner <mrl@mandriva.com> | 2007-06-15 17:18:23 +0000 |
commit | 4725311c93db97c21df6182f4074129a02f74c01 (patch) | |
tree | 52dfd41d063fefae8f08dd23c9eaa74f1abeaf0f /iurt2 | |
parent | a8ec2f4a2099ab52c86bee8160b90abb3d02634e (diff) | |
download | iurt-4725311c93db97c21df6182f4074129a02f74c01.tar iurt-4725311c93db97c21df6182f4074129a02f74c01.tar.gz iurt-4725311c93db97c21df6182f4074129a02f74c01.tar.bz2 iurt-4725311c93db97c21df6182f4074129a02f74c01.tar.xz iurt-4725311c93db97c21df6182f4074129a02f74c01.zip |
- --additional-media option on --chrooted-urpmi one, as they are almost clones.
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 { |