commit: a031478a9c996d8a3a9085ed6eed41d8737776ed
Author: Doug Freed <dwfreed <AT> mtu <DOT> edu>
AuthorDate: Tue Jul 30 14:11:07 2024 +0000
Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Tue Jul 30 14:11:32 2024 +0000
URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=a031478a
stagebase: Create parent directories
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
catalyst/base/stagebase.py | 2 ++
1 file changed, 2 insertions(+)
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)