]> git.saurik.com Git - apt.git/commit
prefer native arch over higher priority for providers
authorColin Watson <cjwatson@ubuntu.com>
Thu, 1 Aug 2013 11:19:43 +0000 (13:19 +0200)
committerMichael Vogt <mvo@debian.org>
Thu, 1 Aug 2013 19:28:11 +0000 (21:28 +0200)
commit58f3aec5837ac1d88747530bb41add0ac93019d0
tree41eaa3159fcbd3a81fd7620025b21a496b68baad
parent1819ccef3c9ac0a6b1a413b89b435b4f7d601afd
prefer native arch over higher priority for providers

The rational from the buglog:
> The problem here is that the Priority field in one of the Packages files
> is incorrect due to a mishap with reprepro configuration, […] the
> amd64 version is Priority: standard but the arm64 version is Priority:
> optional (and has a stray "optional: interpreters" field).
> […]
> However, Priority is a rather weak property of a package because it's
> typically applied via overrides, and it's easy for maintainers of
> third-party repositories to misconfigure them so that overrides aren't
> applied correctly.  It shouldn't be ranked ahead of choosing packages
> from the native architecture.  In this case, I have no user-mode
> emulation for arm64 set up, so choosing m4:arm64 simply won't work.

This effectly makes the priority the least interesting data point in
chosing a provider, which is in line with the other checks we have
already order above priority in the past and also has a certain appeal by
the soft irony it provides.

Closes: #718482
apt-pkg/depcache.cc
test/integration/test-prefer-native-architecture-over-higher-priority [new file with mode: 0755]