aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2024-08-03 11:04:30 +0200
committerAndreas K. Hüttel <dilfridge@gentoo.org>2024-08-03 11:04:30 +0200
commit6356b5ab72a658635dd018c25b21ce998250f887 (patch)
treea2fc072a7ae16fa26348e4fdb6e1b4fab230ec6a
parentnote to self: python is stupid (diff)
downloadcatalyst-6356b5ab72a658635dd018c25b21ce998250f887.tar.gz
catalyst-6356b5ab72a658635dd018c25b21ce998250f887.tar.bz2
catalyst-6356b5ab72a658635dd018c25b21ce998250f887.zip
Add log.debug statements to follow profile symlink creation
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
-rw-r--r--catalyst/base/stagebase.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py
index 82300e88..2975236e 100644
--- a/catalyst/base/stagebase.py
+++ b/catalyst/base/stagebase.py
@@ -888,11 +888,14 @@ class StageBase(TargetBase, ClearBase, GenBase):
# stage_path is chroot_path + root_path
root_port_conf = Path(self.settings['stage_path'] + self.settings['port_conf'])
+ log.debug(' creating directory %s', root_port_conf)
root_port_conf.mkdir(mode=0o755, parents=True, exist_ok=True)
root_make_profile = root_port_conf / 'make.profile'
+ log.debug(' removing file %s', root_make_profile)
root_make_profile.unlink(missing_ok=True)
+ log.debug(' symlinking it to %s', os.path.relpath(chroot_profile_path, root_port_conf))
root_make_profile.symlink_to(os.path.relpath(chroot_profile_path, root_port_conf),
target_is_directory=True)