diff options
author | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2017-07-04 11:17:45 +0100 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-07-04 21:20:06 +0900 |
commit | 7f365869aa377841b8111662bb48dd7b01bc614f (patch) | |
tree | beb495a3ef74bea343a4122a5c0d1e98f2c0f611 | |
parent | 5ac9f5de3a42c527c319950aa2a6d5ec5483d3b8 (diff) | |
download | buildstream-44-symlinks-in-the-sandbox-are-broken-by-the-path-to-the-buildstream-cache-containing-symlinks.tar.gz |
Fix symlink generation being confused by symlinks to the sandbox root44-symlinks-in-the-sandbox-are-broken-by-the-path-to-the-buildstream-cache-containing-symlinks
-rw-r--r-- | buildstream/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/utils.py b/buildstream/utils.py index 6c5bfd6c5..65af33091 100644 --- a/buildstream/utils.py +++ b/buildstream/utils.py @@ -575,7 +575,7 @@ def _relative_symlink_target(root, symlink, target): # Create a full path to the target, including the leading staging # directory - fulltarget = os.path.join(root, target) + fulltarget = os.path.join(os.path.realpath(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 |