From 45a438816478a3fd1a6a3330af772a51dab87080 Mon Sep 17 00:00:00 2001 From: scheibelp Date: Tue, 1 Nov 2016 13:55:13 -0700 Subject: Update references in debug command (#2204) --- lib/spack/spack/cmd/debug.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/spack/spack/cmd/debug.py b/lib/spack/spack/cmd/debug.py index 757c5bca80..c7e90cb210 100644 --- a/lib/spack/spack/cmd/debug.py +++ b/lib/spack/spack/cmd/debug.py @@ -74,16 +74,16 @@ def create_db_tarball(args): tarball_name = "spack-db.%s.tar.gz" % _debug_tarball_suffix() tarball_path = os.path.abspath(tarball_name) - base = os.path.basename(spack.install_path) + base = os.path.basename(spack.store.root) transform_args = [] if 'GNU' in tar('--version', output=str): transform_args = ['--transform', 's/^%s/%s/' % (base, tarball_name)] else: 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): - files = [spack.installed_db._index_path] + files = [spack.store.db._index_path] files += glob('%s/*/*/*/.spack/spec.yaml' % base) files = [os.path.relpath(f) for f in files] -- cgit v1.2.3-60-g2f50