Skip to content

Commit

Permalink
dev_scripts: Fix bug during env build
Browse files Browse the repository at this point in the history
Create the build directory first, and then add the PySide6 package in
it.
  • Loading branch information
apyrgio committed Apr 30, 2024
1 parent e0d0848 commit 7586cd5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dev_scripts/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,7 @@ def build(
):
"""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
Expand Down Expand Up @@ -672,8 +673,6 @@ def build(
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)
Expand Down

0 comments on commit 7586cd5

Please sign in to comment.