From be6c02520e8fae157479cdc73cef8cb0723a567a Mon Sep 17 00:00:00 2001 From: Alexander van der Grinten Date: Mon, 28 Oct 2024 22:03:42 +0100 Subject: [PATCH] base: Warn about missing architecture: --- xbstrap/base.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xbstrap/base.py b/xbstrap/base.py index ee1882f..042c969 100644 --- a/xbstrap/base.py +++ b/xbstrap/base.py @@ -1149,6 +1149,9 @@ def __init__(self, cfg, pkg_yml): self._stages = dict() self._tasks = dict() + if "architecture" not in self._this_yml: + _util.log_warn(f"Tool {self.name} does not specify architecture") + if "stages" in self._this_yml: for stage_yml in self._this_yml["stages"]: stage = HostStage(self._cfg, self, False, stage_yml) @@ -1330,6 +1333,9 @@ def __init__(self, cfg, pkg_yml): self._build_steps = [] self._tasks = dict() + if "architecture" not in self._this_yml: + _util.log_warn(f"Package {self.name} does not specify architecture") + if "configure" in self._this_yml: for step_yml in self._this_yml["configure"]: self._configure_steps.append(ScriptStep(step_yml))