1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-14 16:26:13 +01:00
This commit is contained in:
Marcus Huewe 2015-10-07 20:47:43 +02:00
commit 8f8dd91675

View File

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