may be needed

This commit is contained in:
Faik Uygur
2008-11-05 09:13:32 +00:00
parent 1fcd355b6d
commit 9661a234b8
+8
View File
@@ -155,6 +155,14 @@ def list_installed():
"""
return pisi.db.installdb.InstallDB().list_installed()
def list_obsoleted(repo=None):
"""
Return a list of obsoleted packages -> list_of_strings
@param repo: Repository of the obsoleted packages. If repo is None than returns
a list of all the obsoleted packages in all the repositories
"""
return pisi.db.packagedb.PackageDB().get_obsoletes(repo)
def list_replaces(repo=None):
"""
Return a dictionary of the replaced packages in the given repository