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

- use apiurl parameter

This commit is contained in:
Marcus Hüwe 2009-05-08 19:37:06 +00:00
parent fb992a24fc
commit ef94ae807c

View File

@ -2575,12 +2575,9 @@ def branch_pkg(apiurl, src_project, src_package, nodevelproject=False, rev=None,
query['target_project'] = target_project
if target_package:
query['target_package'] = target_package
u = makeurl(conf.config['apiurl'],
['source', src_project, src_package],
query=query)
u = makeurl(apiurl, ['source', src_project, src_package], query=query)
f = http_POST(u)
r = f.read()
#print r
r = r.split('targetproject">')[1]
r = r.split('</data>')[0]
return r