Skip to content

Commit da2e9b4

Browse files
committed
Adjust platform chroot_setup_cmd with data from platform flavours
1 parent cb187a9 commit da2e9b4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

alws/routers/build_node.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ async def get_task(
121121
response["platform"].data["mock"][key].update(
122122
flavour.data["mock"][key]
123123
)
124+
if "chroot_setup_cmd" in flavour.data.get('mock', {}):
125+
response["platform"].data["mock"]["chroot_setup_cmd"] = (
126+
flavour.data["mock"]["chroot_setup_cmd"]
127+
)
124128
if "dnf_common_opts" in flavour.data.get('mock', {}):
125129
if "dnf_common_opts" not in response["platform"].data["mock"]:
126130
response["platform"].data["mock"]["dnf_common_opts"] = []

0 commit comments

Comments
 (0)