From 0aa819f1d9bc609abf06708c96460fbc296c7b34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Tue, 23 May 2006 15:04:23 +0000 Subject: [PATCH] we need to get available repos in pisi-x and we shouldn't have to deal with repodb. --- pisi/api.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pisi/api.py b/pisi/api.py index 4d5ccffa..4fb3cf67 100644 --- a/pisi/api.py +++ b/pisi/api.py @@ -357,6 +357,9 @@ def remove_repo(name): ctx.ui.error(_('Repository %s does not exist. Cannot remove.') % name) +def list_repos(): + return ctx.repodb.list() + def update_repo(repo, force=False): ctx.ui.info(_('* Updating repository: %s') % repo) index = Index()