summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Scheibel <scheibel1@llnl.gov>2018-10-12 10:43:06 -0700
committerGitHub <noreply@github.com>2018-10-12 10:43:06 -0700
commit6977d933c860dc0168428d8b8127af6fc3f59ffd (patch)
treeb752cd87ccd3b2c1c961fdae151421030085d6cb
parentb0430457aa079d009b8fd6034cc5a04b91b07d35 (diff)
downloadspack-6977d933c860dc0168428d8b8127af6fc3f59ffd.tar.gz
spack-6977d933c860dc0168428d8b8127af6fc3f59ffd.tar.bz2
spack-6977d933c860dc0168428d8b8127af6fc3f59ffd.tar.xz
spack-6977d933c860dc0168428d8b8127af6fc3f59ffd.zip
buildcache install: generate modules (#9509)
Spack packages installed using spack buildcache were not running post-install hooks, which create module files and manage licenses (if necessary). This was already occurring for Spack packages installed with spack install --use-cache
-rw-r--r--lib/spack/spack/cmd/buildcache.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/spack/spack/cmd/buildcache.py b/lib/spack/spack/cmd/buildcache.py
index a8ee3ae581..da2c35ec2f 100644
--- a/lib/spack/spack/cmd/buildcache.py
+++ b/lib/spack/spack/cmd/buildcache.py
@@ -254,6 +254,7 @@ def install_tarball(spec, args):
tty.msg('Installing buildcache for spec %s' % spec.format())
bindist.extract_tarball(spec, tarball, args.allow_root,
args.unsigned, args.force)
+ spack.hooks.post_install(spec)
spack.store.store.reindex()
else:
tty.die('Download of binary cache file for spec %s failed.' %