diff options
author | Doug Freed <dwfreed@mtu.edu> | 2024-07-30 16:11:07 +0200 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2024-07-30 16:11:32 +0200 |
commit | a031478a9c996d8a3a9085ed6eed41d8737776ed (patch) | |
tree | 71fce90ba1b9501c5cd1d831d6e498f17e0c014f /catalyst | |
parent | log: hide our functions and include line numbers (diff) | |
download | catalyst-a031478a9c996d8a3a9085ed6eed41d8737776ed.tar.gz catalyst-a031478a9c996d8a3a9085ed6eed41d8737776ed.tar.bz2 catalyst-a031478a9c996d8a3a9085ed6eed41d8737776ed.zip |
stagebase: Create parent directories
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'catalyst')
-rw-r--r-- | catalyst/base/stagebase.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py index ad7cd12e..82300e88 100644 --- a/catalyst/base/stagebase.py +++ b/catalyst/base/stagebase.py @@ -888,6 +888,8 @@ class StageBase(TargetBase, ClearBase, GenBase): # stage_path is chroot_path + root_path root_port_conf = Path(self.settings['stage_path'] + self.settings['port_conf']) + root_port_conf.mkdir(mode=0o755, parents=True, exist_ok=True) + root_make_profile = root_port_conf / 'make.profile' root_make_profile.unlink(missing_ok=True) |