summaryrefslogtreecommitdiff
path: root/lib/spack/spack/cmd/modules/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/spack/spack/cmd/modules/__init__.py')
-rw-r--r--lib/spack/spack/cmd/modules/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/spack/spack/cmd/modules/__init__.py b/lib/spack/spack/cmd/modules/__init__.py
index 36e2760ce9..65b174a06f 100644
--- a/lib/spack/spack/cmd/modules/__init__.py
+++ b/lib/spack/spack/cmd/modules/__init__.py
@@ -309,7 +309,7 @@ def refresh(module_type, specs, args):
# Skip unknown packages.
writers = [
- cls(spec, args.module_set_name) for spec in specs if spack.repo.path.exists(spec.name)
+ cls(spec, args.module_set_name) for spec in specs if spack.repo.PATH.exists(spec.name)
]
# Filter excluded packages early
@@ -377,7 +377,7 @@ callbacks = {"refresh": refresh, "rm": rm, "find": find, "loads": loads}
def modules_cmd(parser, args, module_type, callbacks=callbacks):
# Qualifiers to be used when querying the db for specs
constraint_qualifiers = {
- "refresh": {"installed": True, "known": lambda x: not spack.repo.path.exists(x)}
+ "refresh": {"installed": True, "known": lambda x: not spack.repo.PATH.exists(x)}
}
query_args = constraint_qualifiers.get(args.subparser_name, {})