Skip to content
Snippets Groups Projects
Commit 6f05f632 authored by Seblu's avatar Seblu
Browse files

searching is now handled in repomananger

parent bcd9f6d8
No related branches found
No related tags found
No related merge requests found
......@@ -201,9 +201,7 @@ def c_search(parser, args):
Search in repository
'''
repoman = load_repositories(args)
for repo in repoman:
arrow(repo.config.name)
repo.search(args.pattern)
repoman.search(args.pattern)
def c_get(parser, args):
'''
......
......@@ -568,3 +568,11 @@ class RepositoryManager(object):
if verbose:
s += " (%s)" % repo.config.path
out(s)
def search(self, pattern):
'''
Search pattern accross all registered repositories
'''
for repo in self.repos:
arrow(repo.config.name)
repo.search(pattern)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment