From 56bafdc2823234ba108c66df8acf085d8edee851 Mon Sep 17 00:00:00 2001 From: Oliver Breitwieser Date: Thu, 14 Sep 2017 14:30:15 -0400 Subject: database: rename `installed_extensions_for` Views support activating packages, so rename the method because it will soon query what is activated versus what is installed. --- lib/spack/spack/cmd/deactivate.py | 2 +- lib/spack/spack/cmd/extensions.py | 2 +- lib/spack/spack/database.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/spack/spack/cmd/deactivate.py b/lib/spack/spack/cmd/deactivate.py index d09c276085..0be4612ba2 100644 --- a/lib/spack/spack/cmd/deactivate.py +++ b/lib/spack/spack/cmd/deactivate.py @@ -59,7 +59,7 @@ def deactivate(parser, args): if args.all: if pkg.extendable: tty.msg("Deactivating all extensions of %s" % pkg.spec.short_spec) - ext_pkgs = spack.store.db.installed_extensions_for(spec) + ext_pkgs = spack.store.db.activated_extensions_for(spec) for ext_pkg in ext_pkgs: ext_pkg.spec.normalize() diff --git a/lib/spack/spack/cmd/extensions.py b/lib/spack/spack/cmd/extensions.py index bda20b9e1c..e1f30f7cf3 100644 --- a/lib/spack/spack/cmd/extensions.py +++ b/lib/spack/spack/cmd/extensions.py @@ -90,7 +90,7 @@ def extensions(parser, args): # List specs of installed extensions. # installed = [s.spec - for s in spack.store.db.installed_extensions_for(spec)] + for s in spack.store.db.activated_extensions_for(spec)] print if not installed: diff --git a/lib/spack/spack/database.py b/lib/spack/spack/database.py index 91142579d5..f8334dfa00 100644 --- a/lib/spack/spack/database.py +++ b/lib/spack/spack/database.py @@ -741,7 +741,7 @@ class Database(object): return relatives @_autospec - def installed_extensions_for(self, extendee_spec): + def activated_extensions_for(self, extendee_spec): """ Return the specs of all packages that extend the given spec -- cgit v1.2.3-70-g09d2