summaryrefslogtreecommitdiffstats
path: root/urpmq
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-02-25 14:19:36 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-02-25 14:19:36 +0000
commitc0235444db86ad87bf1f7ed404bb85df19c3e760 (patch)
tree11e14d220e3959ae8a3867b7aaa7c7df200138ce /urpmq
parentc11df96b1dbc3a05252951e544b2e6c84d05fcf2 (diff)
downloadurpmi-c0235444db86ad87bf1f7ed404bb85df19c3e760.tar
urpmi-c0235444db86ad87bf1f7ed404bb85df19c3e760.tar.gz
urpmi-c0235444db86ad87bf1f7ed404bb85df19c3e760.tar.bz2
urpmi-c0235444db86ad87bf1f7ed404bb85df19c3e760.tar.xz
urpmi-c0235444db86ad87bf1f7ed404bb85df19c3e760.zip
- urpmq:
o add --conflicts
Diffstat (limited to 'urpmq')
-rwxr-xr-xurpmq5
1 files changed, 3 insertions, 2 deletions
diff --git a/urpmq b/urpmq
index c88cd268..4f53dcd4 100755
--- a/urpmq
+++ b/urpmq
@@ -78,6 +78,7 @@ usage:
authentication (format is <user:password>).
") . N(" --env - use specific environment (typically a bug report).
") . N(" --changelog - print changelog.
+") . N(" --conflicts - print conflicts.
") . N(" --provides - print provides.
") . N(" --requires - print requires.
") . N(" --sourcerpm - print sourcerpm.
@@ -447,8 +448,8 @@ if ($options{list_aliases}) {
}
}
exit 0;
- } elsif ($options{provides} || $options{requires}) {
- my $get = $options{provides} ? 'provides' : 'requires';
+ } elsif ($options{provides} || $options{requires} || $options{conflicts}) {
+ my $get = $options{provides} ? 'provides' : $options{requires} ? 'requires' : 'conflicts';
my @l = uniq_ { scalar $_->fullname } map { $urpm->{depslist}[$_] } map { split /\|/, $_ } keys %{$state->{selected}};
foreach my $pkg (@l) {
if (@l > 1) {