Replace expensive store.reindex() call with db.add() call. (#13021)

This commit is contained in:
Patrick Gartung 2019-10-02 11:30:28 -05:00 committed by GitHub
parent bec2830802
commit 2a739ed03e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -391,7 +391,7 @@ def install_tarball(spec, args):
bindist.extract_tarball(spec, tarball, args.allow_root, bindist.extract_tarball(spec, tarball, args.allow_root,
args.unsigned, args.force) args.unsigned, args.force)
spack.hooks.post_install(spec) spack.hooks.post_install(spec)
spack.store.store.reindex() spack.store.db.add(spec, spack.store.layout)
else: else:
tty.die('Download of binary cache file for spec %s failed.' % tty.die('Download of binary cache file for spec %s failed.' %
spec.format()) spec.format())