From 3004f33c58590c4b5fc6ce513099969fbfc35bcc Mon Sep 17 00:00:00 2001 From: Greg Becker Date: Wed, 14 Jul 2021 14:58:31 -0400 Subject: [PATCH] spec may be a string, use precomputed namespace (#24867) --- lib/spack/spack/repo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spack/spack/repo.py b/lib/spack/spack/repo.py index 706fe40dd26..ef1d684cadd 100644 --- a/lib/spack/spack/repo.py +++ b/lib/spack/spack/repo.py @@ -662,7 +662,7 @@ def repo_for_pkg(self, spec): 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.