we need to get available repos in pisi-x and we shouldn't have to deal with repodb.

This commit is contained in:
Barış Metin
2006-05-23 15:04:23 +00:00
parent 8883abbc44
commit 0aa819f1d9
+3
View File
@@ -357,6 +357,9 @@ def remove_repo(name):
ctx.ui.error(_('Repository %s does not exist. Cannot remove.') ctx.ui.error(_('Repository %s does not exist. Cannot remove.')
% name) % name)
def list_repos():
return ctx.repodb.list()
def update_repo(repo, force=False): def update_repo(repo, force=False):
ctx.ui.info(_('* Updating repository: %s') % repo) ctx.ui.info(_('* Updating repository: %s') % repo)
index = Index() index = Index()