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:
parent
70d3558596
commit
56bafdc282
3 changed files with 3 additions and 3 deletions
|
@ -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()
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -741,7 +741,7 @@ def installed_relatives(self, spec, direction='children', transitive=True):
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue