From 549ed2319314d7021a25f0345821986a865f9010 Mon Sep 17 00:00:00 2001 From: Alex Pyrgiotis Date: Tue, 30 Apr 2024 17:11:44 +0300 Subject: [PATCH] dev_scripts: Fix bug during env build Create the build directory first, and then add the PySide6 package in it. --- dev_scripts/env.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dev_scripts/env.py b/dev_scripts/env.py index 7b19568..3960505 100755 --- a/dev_scripts/env.py +++ b/dev_scripts/env.py @@ -608,6 +608,7 @@ class Env: ): """Build a Linux environment and install Dangerzone in it.""" build_dir = distro_build(self.distro, self.version) + os.makedirs(build_dir, exist_ok=True) version = dz_version() if self.distro == "fedora": install_deps = DOCKERFILE_BUILD_FEDORA_DEPS @@ -672,8 +673,6 @@ class Env: print(dockerfile) return - os.makedirs(build_dir, exist_ok=True) - # Populate the build context. shutil.copy(package_src, package_dst) shutil.copy(git_root() / "dev_scripts" / "storage.conf", build_dir)