summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm.pm b/urpm.pm
index 7d237e47..dcf641ed 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -1379,9 +1379,9 @@ sub filter_minimal_packages_to_upgrade {
foreach (keys %provides) {
$provides{$_} and next;
my (@choices, @upgradable_choices, %choices_id);
- foreach (@{$urpm->{params}{provides}{$_}}) {
+ foreach my $fullname (@{$urpm->{params}{provides}{$_}}) {
#- prefer upgrade package that need to be upgraded, if they are present in the choice.
- my $pkg = $urpm->{params}{info}{$_};
+ my $pkg = $urpm->{params}{info}{$fullname};
if (my @best = grep { exists $packages->{$_->{id}} } ($pkg, $urpm->{params}{names}{$pkg->{name}})) {
$pkg = $best[0]; #- keep already requested packages.
}