From 5a919e0919d1328fa5d15661a14abffdb1fb2379 Mon Sep 17 00:00:00 2001 From: jlausuch Date: Thu, 25 Jul 2024 15:13:46 +0200 Subject: [PATCH] Allow entering custom meta variables This will help override default meta variables like _OBSOLETE=1 --- script/scriptgen.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script/scriptgen.py b/script/scriptgen.py index 7df0b7d..1e0eb73 100644 --- a/script/scriptgen.py +++ b/script/scriptgen.py @@ -81,6 +81,8 @@ def doFile(self, filename): batches_string = root.attrib.get("batches", "default") for b in batches_string.split("|"): batch = self.doBatch(root, b) + if root.attrib.get("metavars"): + batch.meta_variables = root.attrib.get("metavars") if batch: for news in root.findall(".//news"): if news.attrib.get("iso", ""):