summaryrefslogtreecommitdiffstats
path: root/urpmq
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-08-11 16:52:13 +0000
committerFrancois Pons <fpons@mandriva.com>2003-08-11 16:52:13 +0000
commit2f5acf368a52fc065e2bb261b8d3c9eef89b6002 (patch)
treeab07598e770a5cca86d9bcdc870898458cb53899 /urpmq
parentdc0e34f5c09a230a35b591c421f6b689ebc44325 (diff)
downloadurpmi-2f5acf368a52fc065e2bb261b8d3c9eef89b6002.tar
urpmi-2f5acf368a52fc065e2bb261b8d3c9eef89b6002.tar.gz
urpmi-2f5acf368a52fc065e2bb261b8d3c9eef89b6002.tar.bz2
urpmi-2f5acf368a52fc065e2bb261b8d3c9eef89b6002.tar.xz
urpmi-2f5acf368a52fc065e2bb261b8d3c9eef89b6002.zip
added -a flag.
Diffstat (limited to 'urpmq')
-rwxr-xr-xurpmq5
1 files changed, 4 insertions, 1 deletions
diff --git a/urpmq b/urpmq
index ccb12672..b989a7c7 100755
--- a/urpmq
+++ b/urpmq
@@ -65,6 +65,7 @@ usage:
") . N(" -v - verbose mode.
") . N(" -d - extend query to package dependencies.
") . N(" -u - remove package if a more recent version is already installed.
+") . N(" -a - select all matches on command line.
") . N(" -c - complete output with package to be removed.
") . N(" -P - do not search in provides to find package.
") . N(" -R - reverse search to what requires package.
@@ -131,6 +132,7 @@ while (defined($_ = shift @ARGV)) {
/[\?h]/ and do { usage; next };
/d/ and do { $query->{deps} = 1; next };
/u/ and do { $query->{upgrade} = 1; next };
+ /a/ and do { $query->{all} = 1; next };
/m/ and do { $query->{deps} = $query->{upgrade} = 1; next };
/M/ and do { $query->{deps} = $query->{upgrade} = 1; next };
/c/ and do { $query->{complete} = 1; next };
@@ -220,7 +222,8 @@ if ($query->{list_aliases}) {
if (@names) {
$urpm->search_packages(\%requested, [ @names ],
use_provides => $query->{use_provides},
- fuzzy => $query->{fuzzy})
+ fuzzy => $query->{fuzzy},
+ all => $query->{all})
or $query->{force} or exit 1;
}
if (@src_names) {