summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authoreugeneswalker <38933153+eugeneswalker@users.noreply.github.com>2021-05-10 10:36:53 -0700
committerGitHub <noreply@github.com>2021-05-10 10:36:53 -0700
commit4903eabc7accf40510df23bca331daa8e363a562 (patch)
treea9f1cf7c24c092ec6a139c06ae3138b3eccf4a84 /lib
parentccdda9a74ef13c12506718d33b4c4ab0151363e2 (diff)
downloadspack-4903eabc7accf40510df23bca331daa8e363a562.tar.gz
spack-4903eabc7accf40510df23bca331daa8e363a562.tar.bz2
spack-4903eabc7accf40510df23bca331daa8e363a562.tar.xz
spack-4903eabc7accf40510df23bca331daa8e363a562.zip
compare full old_prefix and new_prefix instead of layout_root (#23506)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/binary_distribution.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/binary_distribution.py b/lib/spack/spack/binary_distribution.py
index d23d0ba86a..1ac89b615c 100644
--- a/lib/spack/spack/binary_distribution.py
+++ b/lib/spack/spack/binary_distribution.py
@@ -1178,7 +1178,7 @@ def relocate_package(spec, allow_root):
text_names.append(text_name)
# If we are not installing back to the same install tree do the relocation
- if old_layout_root != new_layout_root:
+ if old_prefix != new_prefix:
files_to_relocate = [os.path.join(workdir, filename)
for filename in buildinfo.get('relocate_binaries')
]