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:
parent
cbaf5702e4
commit
458eb4f514
10
osc/core.py
10
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:
|
||||
|
Loading…
Reference in New Issue
Block a user