1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-09 22:36:14 +01:00

Merge branch 'creq_no_supersede_dups' of https://github.com/marcus-h/osc

Do not supersede the same requests several times in osc creq.
This commit is contained in:
Marcus Huewe 2020-12-22 16:07:43 +01:00
commit 6104560050

View File

@ -1841,14 +1841,14 @@ Please submit there instead, or use --nodevelproject to force direct submission.
i = 0
actionsxml = ""
supersede = []
supersede = set()
for ai in opts.actions:
if ai == 'submit':
args = opts.actiondata[i]
i = i+1
actions, to_supersede = self._submit_request(args, opts, options_block)
actionsxml += actions
supersede.extend(to_supersede)
supersede.update(to_supersede)
elif ai == 'delete':
args = opts.actiondata[i]
actionsxml += self._delete_request(args, opts)