aboutsummaryrefslogtreecommitdiffstats
path: root/URPM/Resolve.pm
diff options
context:
space:
mode:
Diffstat (limited to 'URPM/Resolve.pm')
-rw-r--r--URPM/Resolve.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/URPM/Resolve.pm b/URPM/Resolve.pm
index 1f4006b..00d7812 100644
--- a/URPM/Resolve.pm
+++ b/URPM/Resolve.pm
@@ -209,9 +209,9 @@ sub _find_required_package__sort {
my ($urpm, $db, $packages, $provided_version) = @_;
my ($best, @other) = sort {
- URPM::rpmvercmp($b->[3], $a->[3]) #- highest provided version
- || $a->[1] <=> $b->[1] #- we want the lowest (ie preferred arch)
- || $b->[2] <=> $a->[2]; #- and the higher
+ $a->[1] <=> $b->[1] #- we want the lowest (ie preferred arch)
+ || $b->[2] <=> $a->[2] #- and the higher score
+ || URPM::rpmvercmp($b->[3], $a->[3]); #- and the highest provided version
} map {
my $score = 0;
$score += 2 if $_->flag_requested;