summaryrefslogtreecommitdiffstats
path: root/urpmq
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-07-08 07:58:05 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-07-08 07:58:05 +0000
commit896c30beccf1bff0a8acb1e78850eeae36419d28 (patch)
treef6a051dbaea28e5591bc1e1e75d5f7c50f24effc /urpmq
parent501f41944fdaebbd649a7f9d12e9b58ee7c14eba (diff)
downloadurpmi-896c30beccf1bff0a8acb1e78850eeae36419d28.tar
urpmi-896c30beccf1bff0a8acb1e78850eeae36419d28.tar.gz
urpmi-896c30beccf1bff0a8acb1e78850eeae36419d28.tar.bz2
urpmi-896c30beccf1bff0a8acb1e78850eeae36419d28.tar.xz
urpmi-896c30beccf1bff0a8acb1e78850eeae36419d28.zip
- urpmq:
o --suggests now displays the suggested packages, see --allow-suggests for previous behaviour (#39726) - fixing duplicated setting of options in args.pm
Diffstat (limited to 'urpmq')
-rwxr-xr-xurpmq4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpmq b/urpmq
index e6b46707..47d7815f 100755
--- a/urpmq
+++ b/urpmq
@@ -82,6 +82,7 @@ usage:
") . N(" --conflicts - print conflicts.
") . N(" --provides - print provides.
") . N(" --requires - print requires.
+") . N(" --suggests - print suggests.
") . N(" --sourcerpm - print sourcerpm.
") . N(" --summary, -S - print summary.
") . N(" --verbose, -v - verbose mode.
@@ -490,8 +491,7 @@ if ($options{list_aliases}) {
}
}
exit 0;
- } elsif ($options{provides} || $options{requires} || $options{conflicts}) {
- my $get = $options{provides} ? 'provides' : $options{requires} ? 'requires' : 'conflicts';
+ } elsif (my ($get) = grep { $options{$_} } 'provides', 'requires', 'conflicts', 'suggests') {
my @l = uniq_ { scalar $_->fullname } map { $urpm->{depslist}[$_] } map { split /\|/, $_ } keys %{$state->{selected}};
foreach my $pkg (@l) {
if (@l > 1) {