mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-09 20:45:47 +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:
commit
6104560050
@ -1841,14 +1841,14 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
|
|
||||||
i = 0
|
i = 0
|
||||||
actionsxml = ""
|
actionsxml = ""
|
||||||
supersede = []
|
supersede = set()
|
||||||
for ai in opts.actions:
|
for ai in opts.actions:
|
||||||
if ai == 'submit':
|
if ai == 'submit':
|
||||||
args = opts.actiondata[i]
|
args = opts.actiondata[i]
|
||||||
i = i+1
|
i = i+1
|
||||||
actions, to_supersede = self._submit_request(args, opts, options_block)
|
actions, to_supersede = self._submit_request(args, opts, options_block)
|
||||||
actionsxml += actions
|
actionsxml += actions
|
||||||
supersede.extend(to_supersede)
|
supersede.update(to_supersede)
|
||||||
elif ai == 'delete':
|
elif ai == 'delete':
|
||||||
args = opts.actiondata[i]
|
args = opts.actiondata[i]
|
||||||
actionsxml += self._delete_request(args, opts)
|
actionsxml += self._delete_request(args, opts)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user