summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Becker <becker33@llnl.gov>2021-07-14 14:58:31 -0400
committerGitHub <noreply@github.com>2021-07-14 11:58:31 -0700
commit3004f33c58590c4b5fc6ce513099969fbfc35bcc (patch)
tree7e409a32d814310a840221f184d69beb7be1f67c
parenta9e7f3a4e717b6e0385d6a987326b171c6bfc15a (diff)
downloadspack-3004f33c58590c4b5fc6ce513099969fbfc35bcc.tar.gz
spack-3004f33c58590c4b5fc6ce513099969fbfc35bcc.tar.bz2
spack-3004f33c58590c4b5fc6ce513099969fbfc35bcc.tar.xz
spack-3004f33c58590c4b5fc6ce513099969fbfc35bcc.zip
spec may be a string, use precomputed namespace (#24867)
-rw-r--r--lib/spack/spack/repo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/repo.py b/lib/spack/spack/repo.py
index 706fe40dd2..ef1d684cad 100644
--- a/lib/spack/spack/repo.py
+++ b/lib/spack/spack/repo.py
@@ -662,7 +662,7 @@ class RepoPath(object):
if namespace:
fullspace = get_full_namespace(namespace)
if fullspace not in self.by_namespace:
- raise UnknownNamespaceError(spec.namespace)
+ raise UnknownNamespaceError(namespace)
return self.by_namespace[fullspace]
# If there's no namespace, search in the RepoPath.