From: Pyfisch Date: Sun, 2 Oct 2022 20:22:58 +0000 (+0200) Subject: Fix crash in setup_package_cache X-Git-Tag: v14~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d073d666eea9de9651eca250e5c6878011a0f3e8;p=thirdparty%2Fmkosi.git Fix crash in setup_package_cache Otherwise mkosi crashes if config.cache_path is None. --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index a66c4a6bd..1b42a4ed8 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -4656,7 +4656,7 @@ def setup_package_cache(config: MkosiConfig, workspace: Path) -> Path: else: cache = config.cache_path - os.makedirs(config.cache_path, 0o755, exist_ok=True) + os.makedirs(cache, 0o755, exist_ok=True) return cache