summaryrefslogtreecommitdiffstats
path: root/urpm/args.pm
diff options
context:
space:
mode:
authorOlivier Thauvin <nanardon@mandriva.org>2004-11-24 18:32:46 +0000
committerOlivier Thauvin <nanardon@mandriva.org>2004-11-24 18:32:46 +0000
commita851747b92213cfeffead634414cb36d9fc576a6 (patch)
tree82efe01fd523f6b5806c431dbb5981182301e8f4 /urpm/args.pm
parentd0975a4dc82a25a2f1e2105e9c405fcaf067bdfa (diff)
downloadurpmi-a851747b92213cfeffead634414cb36d9fc576a6.tar
urpmi-a851747b92213cfeffead634414cb36d9fc576a6.tar.gz
urpmi-a851747b92213cfeffead634414cb36d9fc576a6.tar.bz2
urpmi-a851747b92213cfeffead634414cb36d9fc576a6.tar.xz
urpmi-a851747b92213cfeffead634414cb36d9fc576a6.zip
- add --search-media options: looking requested or package to update with --auto-select in given media
- replace a die() by $urpm->{fatal}()
Diffstat (limited to 'urpm/args.pm')
-rw-r--r--urpm/args.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/urpm/args.pm b/urpm/args.pm
index ca447cc9..af1a1daf 100644
--- a/urpm/args.pm
+++ b/urpm/args.pm
@@ -51,6 +51,7 @@ my %options_spec = (
'media|mediums=s' => \$::media,
'excludemedia|exclude-media=s' => \$::excludemedia,
'sortmedia|sort-media=s' => \$::sortmedia,
+ 'searchmedia|search-media=s' => \$::searchmedia,
'synthesis=s' => \$::synthesis,
auto => sub {
$urpm->{options}{auto} = $::auto = 1;
@@ -178,6 +179,7 @@ my %options_spec = (
'media|mediums=s' => \$options{media},
'excludemedia|exclude-media=s' => \$options{excludemedia},
'sortmedia|sort-media=s' => \$options{sortmedia},
+ 'searchmedia|search-media=s' => \$options{searchmedia},
'synthesis=s' => \$options{sortmedia},
'auto-select' => sub {
$options{deps} = $options{upgrade} = $options{auto_select} = 1;