summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm.pm b/urpm.pm
index 545e5eeb..49878631 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -1102,7 +1102,7 @@ sub filter_minimal_packages_to_upgrade {
exists $packages->{$choices[0]{id}} or $packages->{$choices[0]{id}} = 1;
unshift @packages, $choices[0]{id};
} else {
- push @packages, [ sort { $a->{id} <=> $b->{id} } @choices ];
+ push @packages, [ sort { $a <=> $b } map { $_->{id} } @choices ];
}
}
}