diff options
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | URPM/Resolve.pm | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -1,6 +1,8 @@ - cleanups - fix computing size of added/freed disk space when updating involves removing some packages (mga#4427) +- really prefer packages from first media, thus fixing downloading noarch + packages from 32 bit repository (mga#1603) Version 3.38.6 - 15 January 2012 diff --git a/URPM/Resolve.pm b/URPM/Resolve.pm index 494cb11..c09047a 100644 --- a/URPM/Resolve.pm +++ b/URPM/Resolve.pm @@ -213,7 +213,7 @@ sub find_required_package { $may_add_to_packages->($pkg); } elsif (my $name = property2name($_)) { my $property = $_; - foreach (keys %{$urpm->{provides}{$name} || {}}) { + foreach (sort {$a <=> $b} keys %{$urpm->{provides}{$name} || {}}) { my $pkg = $urpm->{depslist}[$_]; $pkg->is_arch_compat or next; $pkg->flag_skip || $state->{rejected}{$pkg->fullname} and next; |