checking if all not in current remotes names
@@ -16,8 +16,12 @@ class Search(object):
registry = RemoteRegistry(self._client_cache.registry, self._user_io.out)
if remote == 'all':
+ remotes = registry.remotes
+ # We have to check if there is a remote called "all"
+ # Deprecate: 2.0 can remove this check
+ if 'all' not in (r.name for r in remotes):
references = {}
- for remote in registry.remotes:
+ for remote in remotes:
result = self._remote_manager.search_recipes(remote, pattern, ignorecase)
if result:
references[remote.name] = result
