]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Fix crash in setup_package_cache
authorPyfisch <pyfisch@posteo.org>
Sun, 2 Oct 2022 20:22:58 +0000 (22:22 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 3 Oct 2022 05:59:03 +0000 (07:59 +0200)
Otherwise mkosi crashes if config.cache_path is None.

mkosi/__init__.py

index a66c4a6bdb17363d6f41f3ae9bbb3a04e86a4335..1b42a4ed8499edd505234bef4c048c8a2695c532 100644 (file)
@@ -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