summaryrefslogtreecommitdiffstats
path: root/urpmq
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-03-02 23:25:08 +0000
committerFrancois Pons <fpons@mandriva.com>2001-03-02 23:25:08 +0000
commit4b8fa1237ef982679f025a617b86e5450750fe39 (patch)
tree8957f22195b19b5ef8ef0688b2afabbaade885ea /urpmq
parent25ab7dfd5001807d1d3844bfba2d55883a3a6500 (diff)
downloadurpmi-4b8fa1237ef982679f025a617b86e5450750fe39.tar
urpmi-4b8fa1237ef982679f025a617b86e5450750fe39.tar.gz
urpmi-4b8fa1237ef982679f025a617b86e5450750fe39.tar.bz2
urpmi-4b8fa1237ef982679f025a617b86e5450750fe39.tar.xz
urpmi-4b8fa1237ef982679f025a617b86e5450750fe39.zip
*** empty log message ***
Diffstat (limited to 'urpmq')
-rwxr-xr-xurpmq9
1 files changed, 7 insertions, 2 deletions
diff --git a/urpmq b/urpmq
index 8718bd8d..74fd674e 100755
--- a/urpmq
+++ b/urpmq
@@ -31,7 +31,9 @@ import Locale::GetText I_;
*_ = *I_;
#- default options.
-my $query = {};
+my $query = {
+ minimal => 1,
+ };
my @files;
my @names;
@@ -42,7 +44,7 @@ my @names;
sub usage {
#die(_("usage: urpmq [-h] [-d] [-u] [-c] [-g] [-v] [-r] package_name|rpm_file [package_names|rpm_files...]\n"));
die( sprintf(_("urpmq version %s
-Copyright (C) 2000 MandrakeSoft.
+Copyright (C) 2000, 2001 MandrakeSoft.
This is free software and may be redistributed under the terms of the GNU GPL.
usage:
@@ -53,6 +55,8 @@ usage:
-m - extend query to package dependancies, remove already
installed package that provide what is necessary, add
packages that may be block the upgrade.
+ -M - extend query to package dependancies and remove already
+ installed package only if they are newer or the same.
-c - choose complete method for resolving requires closure.
-g - print groups too with name.
-r - print version and release too with name.
@@ -80,6 +84,7 @@ for (@ARGV) {
/d/ and do { $query->{deps} = 1; next };
/u/ and do { $query->{upgrade} = 1; next };
/m/ and do { $query->{minimal} = 1; next };
+ /M/ and do { $query->{minimal} = 0; next };
/c/ and do { $query->{complete} = 1; next };
/g/ and do { $query->{group} = 1; next };
/v/ and do { $query->{verbose} = 1; next };