spec may be a string, use precomputed namespace (#24867)
This commit is contained in:
		| @@ -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. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Greg Becker
					Greg Becker