mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-26 18:06:13 +01:00
Merge branch 'master' of https://github.com/andreas-schwab/osc
This commit is contained in:
commit
8f8dd91675
@ -5064,10 +5064,11 @@ def branch_pkg(apiurl, src_project, src_package, nodevelproject=False, rev=None,
|
|||||||
raise
|
raise
|
||||||
return (True, m.group(1), m.group(2), None, None)
|
return (True, m.group(1), m.group(2), None, None)
|
||||||
|
|
||||||
|
root = ET.fromstring(f.read())
|
||||||
if conf.config['http_debug']:
|
if conf.config['http_debug']:
|
||||||
print(ET.tostring(root, encoding=ET_ENCODING), file=sys.stderr)
|
print(ET.tostring(root, encoding=ET_ENCODING), file=sys.stderr)
|
||||||
data = {}
|
data = {}
|
||||||
for i in ET.fromstring(f.read()).findall('data'):
|
for i in root.findall('data'):
|
||||||
data[i.get('name')] = i.text
|
data[i.get('name')] = i.text
|
||||||
return (False, data.get('targetproject', None), data.get('targetpackage', None),
|
return (False, data.get('targetproject', None), data.get('targetpackage', None),
|
||||||
data.get('sourceproject', None), data.get('sourcepackage', None))
|
data.get('sourceproject', None), data.get('sourcepackage', None))
|
||||||
|
Loading…
Reference in New Issue
Block a user