summaryrefslogtreecommitdiffstats
path: root/urpmq
diff options
context:
space:
mode:
Diffstat (limited to 'urpmq')
-rwxr-xr-xurpmq6
1 files changed, 2 insertions, 4 deletions
diff --git a/urpmq b/urpmq
index 6348e281..0a651d18 100755
--- a/urpmq
+++ b/urpmq
@@ -284,11 +284,9 @@ if ($urpm::args::options{list_aliases}) {
#- for all provides of package, look up what is requiring them.
foreach ($pkg->provides) {
if (my ($n, $s) = /^([^\s\[]*)(?:\[\*\])?\[?([^\s\]]*\s*[^\s\]]*)/) {
- if (keys %{$urpm->{provides}{$n}} > 1) {
+ if (my @l = grep { $_ ne $pkg->name } map { $_->name } $urpm->packages_providing($n)) {
#- If more than one thing provides this requirement
- #- then don't bother finding stuff
- #- that needs it as it will be invalid
- my @l = grep { $_ ne $pkg->name } map { $_->name } $urpm->packages_providing($n);
+ #- then don't bother finding stuff that needs it as it will be invalid
$urpm->{log}(sprintf "skipping package(s) requiring %s via %s, since %s is also provided by %s", $pkg->name, $n, $n, join(' ', @l));
next;
}