summaryrefslogtreecommitdiffstats
path: root/debian/lib/python/debian_linux/config_v2.py
diff options
context:
space:
mode:
Diffstat (limited to 'debian/lib/python/debian_linux/config_v2.py')
-rw-r--r--debian/lib/python/debian_linux/config_v2.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/lib/python/debian_linux/config_v2.py b/debian/lib/python/debian_linux/config_v2.py
index 9bc789bfd1..2086e0ec6c 100644
--- a/debian/lib/python/debian_linux/config_v2.py
+++ b/debian/lib/python/debian_linux/config_v2.py
@@ -308,6 +308,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)