From cc99c2fc7fb2b2888e1d1bb3bedb2f978b0e36b0 Mon Sep 17 00:00:00 2001 From: Salvatore Bonaccorso Date: Fri, 3 Feb 2023 18:42:29 +0100 Subject: lib/debian-releases.mk: Add support for fetching from different archive areas For suites older than bookworm, fix section to main, contrib and non-free. Starting in bookworm an additonal archive section non-free-firmware will be present. Link: https://bugs.debian.org/1030321 Signed-off-by: Salvatore Bonaccorso --- lib/debian-releases.mk | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib') diff --git a/lib/debian-releases.mk b/lib/debian-releases.mk index eb03a874da..f8ae1fb34d 100644 --- a/lib/debian-releases.mk +++ b/lib/debian-releases.mk @@ -15,6 +15,11 @@ $(1)_MIRROR = $$(MIRROR) $(1)_DIST = $(1) $(1)_ARCHS = $(call get_config, '.distributions.$(1).architectures[]') $(1)_RELEASE = $(1) +ifneq (,$(filter jessie stretch buster bullseye,$(1))) +$(1)_SECTIONS = main contrib non-free +else +$(1)_SECTIONS = main contrib non-free non-free-firmware +endif $(1)_SUBRELEASE = RELEASES += $(1) endef @@ -34,6 +39,7 @@ $(1)_security_DIST = $(1)-security endif $(1)_security_ARCHS = $$($(1)_ARCHS) $(1)_security_RELEASE = $(1) +$(1)_security_SECTIONS = $$($(1)_SECTIONS) $(1)_security_SUBRELEASE = security RELEASES += $(1)_security endef @@ -45,6 +51,7 @@ $(1)_backports_MIRROR = $$(MIRROR) $(1)_backports_DIST = $(1)-backports $(1)_backports_ARCHS = $$($(1)_ARCHS) $(1)_backports_RELEASE = $(1)-backports +$(1)_backports_SECTIONS = $$($(1)_SECTIONS) $(1)_backports_SUBRELEASE = RELEASES += $(1)_backports endef -- cgit v1.2.3