diff options
Diffstat (limited to 'lib/spack/spack/cmd/deactivate.py')
-rw-r--r-- | lib/spack/spack/cmd/deactivate.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/spack/spack/cmd/deactivate.py b/lib/spack/spack/cmd/deactivate.py index db0d717120..d09c276085 100644 --- a/lib/spack/spack/cmd/deactivate.py +++ b/lib/spack/spack/cmd/deactivate.py @@ -63,11 +63,11 @@ def deactivate(parser, args): for ext_pkg in ext_pkgs: ext_pkg.spec.normalize() - if ext_pkg.activated: + if ext_pkg.is_activated(): ext_pkg.do_deactivate(force=True) elif pkg.is_extension: - if not args.force and not spec.package.activated: + if not args.force and not spec.package.is_activated(): tty.die("%s is not activated." % pkg.spec.short_spec) tty.msg("Deactivating %s and all dependencies." % @@ -80,7 +80,7 @@ def deactivate(parser, args): espec = index[name] epkg = espec.package if epkg.extends(pkg.extendee_spec): - if epkg.activated or args.force: + if epkg.is_activated() or args.force: epkg.do_deactivate(force=args.force) @@ -94,7 +94,7 @@ def deactivate(parser, args): tty.die("spack deactivate requires an extension.", "Did you mean 'spack deactivate --all'?") - if not args.force and not spec.package.activated: + if not args.force and not spec.package.is_activated(): tty.die("Package %s is not activated." % specs[0].short_spec) spec.package.do_deactivate(force=args.force) |