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.
This commit is contained in:
Oliver Breitwieser 2017-09-14 14:30:15 -04:00 committed by scheibelp
parent 70d3558596
commit 56bafdc282
3 changed files with 3 additions and 3 deletions

View file

@ -59,7 +59,7 @@ def deactivate(parser, args):
if args.all: if args.all:
if pkg.extendable: if pkg.extendable:
tty.msg("Deactivating all extensions of %s" % pkg.spec.short_spec) 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: for ext_pkg in ext_pkgs:
ext_pkg.spec.normalize() ext_pkg.spec.normalize()

View file

@ -90,7 +90,7 @@ def extensions(parser, args):
# List specs of installed extensions. # List specs of installed extensions.
# #
installed = [s.spec installed = [s.spec
for s in spack.store.db.installed_extensions_for(spec)] for s in spack.store.db.activated_extensions_for(spec)]
print print
if not installed: if not installed:

View file

@ -741,7 +741,7 @@ def installed_relatives(self, spec, direction='children', transitive=True):
return relatives return relatives
@_autospec @_autospec
def installed_extensions_for(self, extendee_spec): def activated_extensions_for(self, extendee_spec):
""" """
Return the specs of all packages that extend Return the specs of all packages that extend
the given spec the given spec