Add list_sources to api

This commit is contained in:
Faik Uygur
2009-01-27 08:50:54 +00:00
parent 2f91101954
commit a8cf29169c
+8
View File
@@ -189,6 +189,14 @@ def list_available(repo=None):
"""
return pisi.db.packagedb.PackageDB().list_packages(repo)
def list_sources(repo=None):
"""
Return a list of available packages in the given repository -> list_of_strings
@param repo: Repository of the sourcepackages. If repo is None than returns
a list of all the available packages in all the repositories
"""
return pisi.db.sourcedb.SourceDB().list_sources(repo)
def list_newest(repo=None, since=None):
"""
Return a list of newest packages in the given repository -> list_of_strings since