summaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian')
-rw-r--r--debian/lib/python/debian_linux/config_v2.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/debian/lib/python/debian_linux/config_v2.py b/debian/lib/python/debian_linux/config_v2.py
index 1c32bc8864..9bc789bfd1 100644
--- a/debian/lib/python/debian_linux/config_v2.py
+++ b/debian/lib/python/debian_linux/config_v2.py
@@ -129,6 +129,10 @@ class ConfigBase:
packages: ConfigPackages = dataclasses.field(default_factory=ConfigPackages)
relations: ConfigRelations = dataclasses.field(default_factory=ConfigRelations)
+ def __post_init__(self):
+ import copy
+ self.build = copy.copy(self.build)
+
def __post_init_hierarchy__(self, path: Path) -> None:
'''
Setup path and default config in the complete hierarchy