compare full old_prefix and new_prefix instead of layout_root (#23506)

This commit is contained in:
eugeneswalker 2021-05-10 10:36:53 -07:00 committed by GitHub
parent ccdda9a74e
commit 4903eabc7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1178,7 +1178,7 @@ def is_backup_file(file):
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')
]