mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
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:
parent
b97e9540c1
commit
549ed23193
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue