diff options
author | Oliver Breitwieser <oliver.breitwieser@kip.uni-heidelberg.de> | 2017-09-14 14:30:15 -0400 |
---|---|---|
committer | scheibelp <scheibel1@llnl.gov> | 2017-11-02 18:45:40 -0700 |
commit | 56bafdc2823234ba108c66df8acf085d8edee851 (patch) | |
tree | 7ab8505cd7953d935a09d09a058fe7a8394febc0 | |
parent | 70d3558596b96fe1dd0eef46deb325cc44b729dd (diff) | |
download | spack-56bafdc2823234ba108c66df8acf085d8edee851.tar.gz spack-56bafdc2823234ba108c66df8acf085d8edee851.tar.bz2 spack-56bafdc2823234ba108c66df8acf085d8edee851.tar.xz spack-56bafdc2823234ba108c66df8acf085d8edee851.zip |
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.
-rw-r--r-- | lib/spack/spack/cmd/deactivate.py | 2 | ||||
-rw-r--r-- | lib/spack/spack/cmd/extensions.py | 2 | ||||
-rw-r--r-- | 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 |