Replace expensive store.reindex() call with db.add() call. (#13021)
This commit is contained in:
parent
bec2830802
commit
2a739ed03e
1 changed files with 1 additions and 1 deletions
|
@ -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())
|
||||||
|
|
Loading…
Reference in a new issue