summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2015-01-15 09:33:51 -0800
committerTodd Gamblin <tgamblin@llnl.gov>2015-02-02 11:19:54 -0800
commit2ae7f53b8359841fc5d1d7b6c70ff72f38bf2d88 (patch)
treecf1adb7b970fcbc8f6008037bfb42f26695c1f4c /lib
parent89ccdf92cd42a52fa42d39e2be580eac110e264a (diff)
downloadspack-2ae7f53b8359841fc5d1d7b6c70ff72f38bf2d88.tar.gz
spack-2ae7f53b8359841fc5d1d7b6c70ff72f38bf2d88.tar.bz2
spack-2ae7f53b8359841fc5d1d7b6c70ff72f38bf2d88.tar.xz
spack-2ae7f53b8359841fc5d1d7b6c70ff72f38bf2d88.zip
Bugfix: Extension hooks shoudl only run for extensions.
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/hooks/extensions.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/spack/spack/hooks/extensions.py b/lib/spack/spack/hooks/extensions.py
index 2cf506beed..718b24b965 100644
--- a/lib/spack/spack/hooks/extensions.py
+++ b/lib/spack/spack/hooks/extensions.py
@@ -27,7 +27,8 @@ import spack
def post_install(pkg):
- pkg.do_activate()
+ if pkg.is_extension:
+ pkg.do_activate()
def pre_uninstall(pkg):
@@ -35,4 +36,5 @@ def pre_uninstall(pkg):
# TODO: store full graph info in stored .spec file.
pkg.spec.normalize()
- pkg.do_deactivate()
+ if pkg.is_extension:
+ pkg.do_deactivate()