Kaydet (Commit) f3c78264 authored tarafından Faik Uygur's avatar Faik Uygur

* api should have list_installed() too...

üst ff88312b
...@@ -146,6 +146,10 @@ def finalize(): ...@@ -146,6 +146,10 @@ def finalize():
ctx.ui.close() ctx.ui.close()
ctx.initialized = False 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): def list_available(repo = None):
'''returns a set of available package names''' '''returns a set of available package names'''
return set(ctx.packagedb.list_packages(repo = repo)) return set(ctx.packagedb.list_packages(repo = repo))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment