aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS3
-rw-r--r--URPM.pm2
2 files changed, 4 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 613d914..2fbfad8 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- prefer package from first medium when same NEVR exists in several media
+ (thus prefering 64bit media over 32 bit ones) (mga#7524)
+
Version 4.20 - 3 December 2012
- fix a rare segfault
diff --git a/URPM.pm b/URPM.pm
index 3b6ea63..1929948 100644
--- a/URPM.pm
+++ b/URPM.pm
@@ -32,7 +32,7 @@ sub set_nofatal {
sub packages_providing {
my ($urpm, $name) = @_;
- grep { $_ } map { $urpm->{depslist}[$_] } keys %{$urpm->{provides}{$name} || {}};
+ grep { $_ } map { $urpm->{depslist}[$_] } sort { $a <=> $b } keys %{$urpm->{provides}{$name} || {}};
}
sub packages_obsoleting {