1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-27 18:26:15 +01:00

fix counter handling for obsrepositories:/ in products

all entries had the same name, so repos got ignored.
This commit is contained in:
Adrian Schröter 2020-02-04 17:18:18 +01:00
parent 096cd25faf
commit 37f19f7de9

View File

@ -1124,8 +1124,8 @@ def main(apiurl, opts, argv):
found_obsrepositories = 0
for node in xml.findall('instrepo'):
if node and node.find('source').get('path') == 'obsrepositories:/':
found_obsrepositories = found_obsrepositories + 1
for path in bi.pathes:
found_obsrepositories += 1
new_node = ET.SubElement(xml, 'instrepo')
new_node.set('name', node.get('name') + "_" + str(found_obsrepositories))
new_node.set('priority', node.get('priority'))