From 2a739ed03e4ebe46162632f6370bd7c355586cf2 Mon Sep 17 00:00:00 2001 From: Patrick Gartung Date: Wed, 2 Oct 2019 11:30:28 -0500 Subject: [PATCH] Replace expensive store.reindex() call with db.add() call. (#13021) --- lib/spack/spack/cmd/buildcache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())