summaryrefslogtreecommitdiffstats
path: root/urpmq
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-02-25 14:10:34 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-02-25 14:10:34 +0000
commit00923f1878f8bdc6b81f8242659bc4249526a2b8 (patch)
tree07d5045c07b828120d89dec7f46a19e8e741842e /urpmq
parentee089b81f89931bc8c9b80b173fa7a53ec1ecd07 (diff)
downloadurpmi-00923f1878f8bdc6b81f8242659bc4249526a2b8.tar
urpmi-00923f1878f8bdc6b81f8242659bc4249526a2b8.tar.gz
urpmi-00923f1878f8bdc6b81f8242659bc4249526a2b8.tar.bz2
urpmi-00923f1878f8bdc6b81f8242659bc4249526a2b8.tar.xz
urpmi-00923f1878f8bdc6b81f8242659bc4249526a2b8.zip
- urpmq:
o --requires now display the raw requires, use --requires-recursive to get the old behaviour (#29176)
Diffstat (limited to 'urpmq')
-rwxr-xr-xurpmq7
1 files changed, 4 insertions, 3 deletions
diff --git a/urpmq b/urpmq
index 448274a9..d7f3f21a 100755
--- a/urpmq
+++ b/urpmq
@@ -446,13 +446,14 @@ if ($options{list_aliases}) {
}
}
exit 0;
- } elsif ($options{provides}) {
+ } elsif ($options{provides} || $options{requires}) {
+ my $get = $options{provides} ? 'provides' : 'requires';
my @l = uniq_ { scalar $_->fullname } map { $urpm->{depslist}[$_] } map { split /\|/, $_ } keys %{$state->{selected}};
foreach my $pkg (@l) {
if (@l > 1) {
- printf "%s: %s\n", $pkg->name, $_ foreach $pkg->provides;
+ printf "%s: %s\n", $pkg->name, $_ foreach $pkg->$get;
} else {
- print "$_\n" foreach $pkg->provides;
+ print "$_\n" foreach $pkg->$get;
}
}
exit 0;