summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Gartung <gartung@fnal.gov>2019-10-02 11:30:28 -0500
committerGitHub <noreply@github.com>2019-10-02 11:30:28 -0500
commit2a739ed03e4ebe46162632f6370bd7c355586cf2 (patch)
treeb192b639d43943ffc4677630f9f39f3dc7d416b7
parentbec283080292f90f8f97dcb7ceb070a9a86ed388 (diff)
downloadspack-2a739ed03e4ebe46162632f6370bd7c355586cf2.tar.gz
spack-2a739ed03e4ebe46162632f6370bd7c355586cf2.tar.bz2
spack-2a739ed03e4ebe46162632f6370bd7c355586cf2.tar.xz
spack-2a739ed03e4ebe46162632f6370bd7c355586cf2.zip
Replace expensive store.reindex() call with db.add() call. (#13021)
-rw-r--r--lib/spack/spack/cmd/buildcache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/cmd/buildcache.py b/lib/spack/spack/cmd/buildcache.py
index 5f26fb8ef9..121a6f4aa5 100644
--- a/lib/spack/spack/cmd/buildcache.py
+++ b/lib/spack/spack/cmd/buildcache.py
@@ -391,7 +391,7 @@ def install_tarball(spec, args):
bindist.extract_tarball(spec, tarball, args.allow_root,
args.unsigned, args.force)
spack.hooks.post_install(spec)
- spack.store.store.reindex()
+ spack.store.db.add(spec, spack.store.layout)
else:
tty.die('Download of binary cache file for spec %s failed.' %
spec.format())