summaryrefslogtreecommitdiffstats
path: root/urpmi
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 /urpmi
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 'urpmi')
-rwxr-xr-xurpmi3
1 files changed, 3 insertions, 0 deletions
diff --git a/urpmi b/urpmi
index 1be42658..c1ca8969 100755
--- a/urpmi
+++ b/urpmi
@@ -30,6 +30,7 @@ my $urpm = new urpm;
#- default options.
our $update = 0;
our $media = '';
+our $searchmedia = undef;
our $excludemedia = '';
our $sortmedia = '';
our $synthesis = '';
@@ -74,6 +75,7 @@ usage:
", $urpm::VERSION) . N(" --help - print this help message.
") . N(" --update - use only update media.
") . N(" --media - use only the given media, separated by comma.
+") . N(" --searchmedia - use only the given media to search requested (or updated) packages.
") . N(" --excludemedia - do not use the given media, separated by comma.
") . N(" --sortmedia - sort media according to substrings separated by comma.
") . N(" --synthesis - use the given synthesis instead of urpmi db.
@@ -318,6 +320,7 @@ unless ($env) {
}
$urpm->configure(nocheck_access => $env || $< != 0,
media => $media,
+ searchmedia => $searchmedia,
excludemedia => $excludemedia,
sortmedia => $sortmedia,
synthesis => $synthesis,