From 4903eabc7accf40510df23bca331daa8e363a562 Mon Sep 17 00:00:00 2001 From: eugeneswalker <38933153+eugeneswalker@users.noreply.github.com> Date: Mon, 10 May 2021 10:36:53 -0700 Subject: compare full old_prefix and new_prefix instead of layout_root (#23506) --- lib/spack/spack/binary_distribution.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') ] -- cgit v1.2.3-70-g09d2