Add support for the amd64v3 variant

This commit is contained in:
Julian Andres Klode 2025-06-18 09:03:06 +02:00 committed by Julian Andres Klode
parent 3bbf1d5866
commit 15a04b9781
2 changed files with 6 additions and 1 deletions

View File

@ -24,7 +24,7 @@ STATE_DIR = data/%(SERIES)/state
# List of architectures that Britney should consider.
# - defaults to the value in testing's Release file (if it is present).
# - Required for the legacy layout.
ARCHITECTURES = amd64 arm64 armhf i386 powerpc ppc64el riscv64
ARCHITECTURES = amd64 amd64v3 arm64 armhf i386 powerpc ppc64el riscv64
# if you're not in this list, arch: all packages are allowed to break on you
NOBREAKALL_ARCHES = amd64

View File

@ -382,6 +382,11 @@ class DebMirrorLikeSuiteContentLoader(SuiteContentLoader):
provides = []
raw_arch = intern(get_field('Architecture'))
# FIXME: Make this configurable.
# If a base architecture is used in an architecture variant package file, promote
# it to the variant architecture.
if arch == "amd64v3" and raw_arch == "amd64":
raw_arch = "amd64v3"
if raw_arch not in {'all', arch}: # pragma: no cover
raise AssertionError("%s has wrong architecture (%s) - should be either %s or all" % (
str(pkg_id), raw_arch, arch))