Skip to content

Commit

Permalink
Merge branch 'creq_no_supersede_dups' of https://github.com/marcus-h/osc
Browse files Browse the repository at this point in the history


Do not supersede the same requests several times in osc creq.
  • Loading branch information
marcus-h committed Dec 22, 2020
2 parents e06c633 + 1aab0a8 commit 6104560
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osc/commandline.py
Original file line number Diff line number Diff line change
Expand Up @@ -1841,14 +1841,14 @@ def do_createrequest(self, subcmd, opts, *args):

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)
Expand Down

0 comments on commit 6104560

Please sign in to comment.