* api should have list_installed() too...
This commit is contained in:
@@ -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))
|
||||||
|
|||||||
Reference in New Issue
Block a user