summaryrefslogtreecommitdiff
path: root/buildstream/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream/utils.py')
-rw-r--r--buildstream/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/buildstream/utils.py b/buildstream/utils.py
index 4da29c259..7686d2668 100644
--- a/buildstream/utils.py
+++ b/buildstream/utils.py
@@ -934,11 +934,11 @@ def _relative_symlink_target(root, symlink, target):
# We want a relative path from the directory in which symlink
# is located, not from the symlink itself.
- symlinkdir, _ = os.path.split(_resolve_symlinks(symlink))
+ symlinkdir, _ = os.path.split(symlink)
# Create a full path to the target, including the leading staging
# directory
- fulltarget = os.path.join(_resolve_symlinks(root), target)
+ fulltarget = os.path.join(root, target)
# now get the relative path from the directory where the symlink
# is located within the staging root, to the target within the same