summaryrefslogtreecommitdiffstats
path: root/urpmq
diff options
context:
space:
mode:
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) {