mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-16 10:36:13 +01:00
fix counter handling for obsrepositories:/ in products
all entries had the same name, so repos got ignored.
This commit is contained in:
parent
096cd25faf
commit
37f19f7de9
@ -1124,8 +1124,8 @@ def main(apiurl, opts, argv):
|
|||||||
found_obsrepositories = 0
|
found_obsrepositories = 0
|
||||||
for node in xml.findall('instrepo'):
|
for node in xml.findall('instrepo'):
|
||||||
if node and node.find('source').get('path') == 'obsrepositories:/':
|
if node and node.find('source').get('path') == 'obsrepositories:/':
|
||||||
found_obsrepositories = found_obsrepositories + 1
|
|
||||||
for path in bi.pathes:
|
for path in bi.pathes:
|
||||||
|
found_obsrepositories += 1
|
||||||
new_node = ET.SubElement(xml, 'instrepo')
|
new_node = ET.SubElement(xml, 'instrepo')
|
||||||
new_node.set('name', node.get('name') + "_" + str(found_obsrepositories))
|
new_node.set('name', node.get('name') + "_" + str(found_obsrepositories))
|
||||||
new_node.set('priority', node.get('priority'))
|
new_node.set('priority', node.get('priority'))
|
||||||
|
Loading…
Reference in New Issue
Block a user