From: Joerg Behrmann Date: Thu, 8 Jun 2023 13:01:40 +0000 (+0200) Subject: state: add a directory for package manager files in the workspace X-Git-Tag: v15~120^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4feb6a4dd3f6fcf36ad10b1434f0ee0d10b3a9d5;p=thirdparty%2Fmkosi.git state: add a directory for package manager files in the workspace --- diff --git a/mkosi/state.py b/mkosi/state.py index 6937da67d..9059ba845 100644 --- a/mkosi/state.py +++ b/mkosi/state.py @@ -41,6 +41,7 @@ class MkosiState: btrfs_maybe_make_subvolume(self.config, self.root, mode=0o755) self.workdir.mkdir() self.staging.mkdir() + self.pkgmngr.mkdir() self.cache_dir.mkdir(parents=True, exist_ok=True) self.install_dir.mkdir(parents=True, exist_ok=True) @@ -61,6 +62,10 @@ class MkosiState: def staging(self) -> Path: return self.workspace / "staging" + @property + def pkgmngr(self) -> Path: + return self.workspace / "pkgmngr" + @property def cache_dir(self) -> Path: return self.config.cache_dir or self.workspace / f"cache/{self.config.distribution}~{self.config.release}"