From a8cf29169c2e8d74a296c245854ef93fc1aec4d4 Mon Sep 17 00:00:00 2001 From: Faik Uygur Date: Tue, 27 Jan 2009 08:50:54 +0000 Subject: [PATCH] Add list_sources to api --- pisi/api.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pisi/api.py b/pisi/api.py index a2c8b87c..89bccc01 100644 --- a/pisi/api.py +++ b/pisi/api.py @@ -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