]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
state: add a directory for package manager files in the workspace
authorJoerg Behrmann <behrmann@physik.fu-berlin.de>
Thu, 8 Jun 2023 13:01:40 +0000 (15:01 +0200)
committerJoerg Behrmann <behrmann@physik.fu-berlin.de>
Thu, 8 Jun 2023 13:02:57 +0000 (15:02 +0200)
mkosi/state.py

index 6937da67d0c70e8fd80787f3f57964f498b98fd6..9059ba84502d01404cf6a508a453d2f087b36284 100644 (file)
@@ -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}"