* api should have list_installed() too...

This commit is contained in:
Faik Uygur
2006-09-20 07:13:58 +00:00
parent ff88312b58
commit f3c782643c
+4
View File
@@ -146,6 +146,10 @@ def finalize():
ctx.ui.close()
ctx.initialized = False
def list_installed():
'''returns a set of installed package names'''
return set(pisi.context.installdb.list_installed())
def list_available(repo = None):
'''returns a set of available package names'''
return set(ctx.packagedb.list_packages(repo = repo))