Skip to content

Commit 6f47aa2

Browse files
committed
this is the correct path to use
1 parent 7da99bb commit 6f47aa2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/spack/spack/binary_distribution.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def write_buildinfo_file(spec):
7171

7272
# Create buildinfo data and write it to disk
7373
buildinfo = {}
74-
buildinfo['buildpath'] = spack.store.layout.path_for_spec(spec)
74+
buildinfo['buildpath'] = spack.store.layout.root
7575
buildinfo['relocate_textfiles'] = text_to_relocate
7676
buildinfo['relocate_binaries'] = binary_to_relocate
7777
filename = buildinfo_file_name(spec)
@@ -182,7 +182,7 @@ def relocate_package(package):
182182
Relocate the given package
183183
"""
184184
buildinfo = read_buildinfo_file(package)
185-
new_path = spack.store.layout.path_for_spec(package.spec)
185+
new_path = spack.store.layout.root
186186
old_path = buildinfo['buildpath']
187187
if old_path == new_path:
188188
return True # No need to relocate

0 commit comments

Comments
 (0)