utils.py: Stop resolving symlinks in _relative_symlink_target
See issue #830.
diff --git a/buildstream/utils.py b/buildstream/utils.py
index 4da29c2..7686d26 100644
--- a/buildstream/utils.py
+++ b/buildstream/utils.py
@@ -934,11 +934,11 @@
# 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