From 458eb4f514b3867e440cdd62e8dd49cbd240607c Mon Sep 17 00:00:00 2001 From: "Dr. Peter Poeml" Date: Thu, 16 Aug 2007 10:28:32 +0000 Subject: [PATCH] add get_binarylist() function. Works per project and per package --- osc/core.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/osc/core.py b/osc/core.py index b0e90e29..50308383 100755 --- a/osc/core.py +++ b/osc/core.py @@ -1454,6 +1454,16 @@ def get_repos_of_project(apiurl, prj): return r +def get_binarylist(apiurl, prj, repo, arch, package=None): + if not package: + package = '_repository' + u = makeurl(apiurl, ['build', prj, repo, arch, package]) + f = http_GET(u) + tree = ET.parse(StringIO(''.join(f))) + r = [ node.get('filename') for node in tree.findall('binary')] + return r + + def show_results_meta(apiurl, prj, package=None): query = [] if package: