From 8001621b8e069dac9602a5c0e8f45c5811def71a Mon Sep 17 00:00:00 2001 From: Chris Hofstaedtler Date: Sat, 23 Nov 2024 23:15:38 +0100 Subject: [PATCH] build-driver: allow basefiles directory to already exist Useful for local testing. --- build-driver/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-driver/build.py b/build-driver/build.py index 3aa9775e..c440a103 100755 --- a/build-driver/build.py +++ b/build-driver/build.py @@ -121,7 +121,7 @@ def run_grml_live( if not old_iso_path: with ci_section("Creating basefile using mmdebstrap"): basefiles_path = grml_fai_config / "config" / "basefiles" - basefiles_path.mkdir() + basefiles_path.mkdir(exist_ok=True) basefile = basefiles_path / f"{arch.upper()}.tar.gz" run_x(["mmdebstrap", "--format=tar", debian_suite, basefile])