spec may be a string, use precomputed namespace (#24867)
This commit is contained in:
parent
a9e7f3a4e7
commit
3004f33c58
@ -662,7 +662,7 @@ def repo_for_pkg(self, spec):
|
|||||||
if namespace:
|
if namespace:
|
||||||
fullspace = get_full_namespace(namespace)
|
fullspace = get_full_namespace(namespace)
|
||||||
if fullspace not in self.by_namespace:
|
if fullspace not in self.by_namespace:
|
||||||
raise UnknownNamespaceError(spec.namespace)
|
raise UnknownNamespaceError(namespace)
|
||||||
return self.by_namespace[fullspace]
|
return self.by_namespace[fullspace]
|
||||||
|
|
||||||
# If there's no namespace, search in the RepoPath.
|
# If there's no namespace, search in the RepoPath.
|
||||||
|
Loading…
Reference in New Issue
Block a user