From a851747b92213cfeffead634414cb36d9fc576a6 Mon Sep 17 00:00:00 2001 From: Olivier Thauvin Date: Wed, 24 Nov 2004 18:32:46 +0000 Subject: - add --search-media options: looking requested or package to update with --auto-select in given media - replace a die() by $urpm->{fatal}() --- urpmi | 3 +++ 1 file changed, 3 insertions(+) (limited to 'urpmi') 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, -- cgit v1.2.1