diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-07-06 10:34:37 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-07-06 10:34:37 +0000 |
commit | 10e9838e8b9eda38ec8601191fe8179b824f1b02 (patch) | |
tree | ca2f0498437ff4e872007a85450436fbf0782824 /urpmq | |
parent | af36e44a71db07c5bebbce7884ddba004879615d (diff) | |
download | urpmi-10e9838e8b9eda38ec8601191fe8179b824f1b02.tar urpmi-10e9838e8b9eda38ec8601191fe8179b824f1b02.tar.gz urpmi-10e9838e8b9eda38ec8601191fe8179b824f1b02.tar.bz2 urpmi-10e9838e8b9eda38ec8601191fe8179b824f1b02.tar.xz urpmi-10e9838e8b9eda38ec8601191fe8179b824f1b02.zip |
- urpmq
o --whatrequires: fix skipping packages through provides provided by other
packages, when the other package is the same pkg name (#31773)
(backport from trunk)
Diffstat (limited to 'urpmq')
-rwxr-xr-x | urpmq | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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; } |