Bugfix: Extension hooks shoudl only run for extensions.

This commit is contained in:
Todd Gamblin 2015-01-15 09:33:51 -08:00
parent 89ccdf92cd
commit 2ae7f53b83

View File

@ -27,6 +27,7 @@
def post_install(pkg): def post_install(pkg):
if pkg.is_extension:
pkg.do_activate() pkg.do_activate()
@ -35,4 +36,5 @@ def pre_uninstall(pkg):
# TODO: store full graph info in stored .spec file. # TODO: store full graph info in stored .spec file.
pkg.spec.normalize() pkg.spec.normalize()
if pkg.is_extension:
pkg.do_deactivate() pkg.do_deactivate()