1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01:00

add get_binarylist() function. Works per project and per package

This commit is contained in:
Dr. Peter Poeml 2007-08-16 10:28:32 +00:00
parent cbaf5702e4
commit 458eb4f514

View File

@ -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: