Update references in debug command (#2204)
This commit is contained in:
parent
edfe2297fd
commit
45a4388164
1 changed files with 3 additions and 3 deletions
|
@ -74,16 +74,16 @@ def create_db_tarball(args):
|
||||||
tarball_name = "spack-db.%s.tar.gz" % _debug_tarball_suffix()
|
tarball_name = "spack-db.%s.tar.gz" % _debug_tarball_suffix()
|
||||||
tarball_path = os.path.abspath(tarball_name)
|
tarball_path = os.path.abspath(tarball_name)
|
||||||
|
|
||||||
base = os.path.basename(spack.install_path)
|
base = os.path.basename(spack.store.root)
|
||||||
transform_args = []
|
transform_args = []
|
||||||
if 'GNU' in tar('--version', output=str):
|
if 'GNU' in tar('--version', output=str):
|
||||||
transform_args = ['--transform', 's/^%s/%s/' % (base, tarball_name)]
|
transform_args = ['--transform', 's/^%s/%s/' % (base, tarball_name)]
|
||||||
else:
|
else:
|
||||||
transform_args = ['-s', '/^%s/%s/' % (base, tarball_name)]
|
transform_args = ['-s', '/^%s/%s/' % (base, tarball_name)]
|
||||||
|
|
||||||
wd = os.path.dirname(spack.install_path)
|
wd = os.path.dirname(spack.store.root)
|
||||||
with working_dir(wd):
|
with working_dir(wd):
|
||||||
files = [spack.installed_db._index_path]
|
files = [spack.store.db._index_path]
|
||||||
files += glob('%s/*/*/*/.spack/spec.yaml' % base)
|
files += glob('%s/*/*/*/.spack/spec.yaml' % base)
|
||||||
files = [os.path.relpath(f) for f in files]
|
files = [os.path.relpath(f) for f in files]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue