Skip to content

Commit

Permalink
base: Warn about missing architecture:
Browse files Browse the repository at this point in the history
  • Loading branch information
avdgrinten committed Oct 28, 2024
1 parent b986511 commit be6c025
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions xbstrap/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit be6c025

Please sign in to comment.