dev_scripts: Fix bug during env build

Create the build directory first, and then add the PySide6 package in
it.
This commit is contained in:
Alex Pyrgiotis 2024-04-30 17:11:44 +03:00
parent b97e9540c1
commit 549ed23193
No known key found for this signature in database
GPG key ID: B6C15EBA0357C9AA

View file

@ -608,6 +608,7 @@ class Env:
): ):
"""Build a Linux environment and install Dangerzone in it.""" """Build a Linux environment and install Dangerzone in it."""
build_dir = distro_build(self.distro, self.version) build_dir = distro_build(self.distro, self.version)
os.makedirs(build_dir, exist_ok=True)
version = dz_version() version = dz_version()
if self.distro == "fedora": if self.distro == "fedora":
install_deps = DOCKERFILE_BUILD_FEDORA_DEPS install_deps = DOCKERFILE_BUILD_FEDORA_DEPS
@ -672,8 +673,6 @@ class Env:
print(dockerfile) print(dockerfile)
return return
os.makedirs(build_dir, exist_ok=True)
# Populate the build context. # Populate the build context.
shutil.copy(package_src, package_dst) shutil.copy(package_src, package_dst)
shutil.copy(git_root() / "dev_scripts" / "storage.conf", build_dir) shutil.copy(git_root() / "dev_scripts" / "storage.conf", build_dir)