From eb4273cf3e952d49bd88ea7d5a9041e2b5aec556 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 7 Aug 2024 15:18:02 +0200 Subject: Adding debian version 6.10.3-1. Signed-off-by: Daniel Baumann --- debian/lib/python/debian_linux/config_v2.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'debian/lib/python/debian_linux/config_v2.py') diff --git a/debian/lib/python/debian_linux/config_v2.py b/debian/lib/python/debian_linux/config_v2.py index 1c32bc8864..744c3276c2 100644 --- a/debian/lib/python/debian_linux/config_v2.py +++ b/debian/lib/python/debian_linux/config_v2.py @@ -304,6 +304,22 @@ class ConfigFeatureset(ConfigBase): for flavour in debianarch.flavour ] + if self.flavour: + # XXX: Remove special case of name + if self.name == 'none': + flavour_default = [i for i in self.flavour if i.defs.is_default] + flavour_quick = [i for i in self.flavour if i.defs.is_quick] + + if not flavour_quick: + flavour_quick = flavour_default or self.flavour[0:1] + flavour_quick[0].defs.is_quick = True + + # Flavours in other featuresets can never be default or quick + else: + for flavour in self.flavour: + flavour.defs.is_default = False + flavour.defs.is_quick = False + self.__post_init_hierarchy__(path) -- cgit v1.2.3