Merge pull request #276 from ssasso/fix_T4800

Fix T4800: wrong chroot_includes_dir var reference
This commit is contained in:
Christian Poessinger 2022-11-09 20:46:43 +01:00 committed by GitHub
commit 77f4ba82f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -412,7 +412,7 @@ if __name__ == "__main__":
## Create includes
if has_nonempty_key(build_config, "includes_chroot"):
for i in build_config["includes_chroot"]:
file_path = os.path.join(includes_chroot_dir, i["path"])
file_path = os.path.join(chroot_includes_dir, i["path"])
os.makedirs(os.path.dirname(file_path), exist_ok=True)
with open(file_path, 'w') as f:
f.write(i["data"])