1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01:00

use sr_ids[0] for superseding

result is not assigned in the case of many packages per request
This commit is contained in:
lethliel 2020-10-05 19:53:45 +02:00
parent eaf50dd13d
commit 8085aa6012

View File

@ -1329,7 +1329,7 @@ class Osc(cmdln.Cmdln):
if len(myreqs) > 0:
for req in myreqs:
change_request_state(apiurl, str(req), 'superseded',
'superseded by %s' % result, result)
'superseded by %s' % sr_ids[0], sr_ids[0])
sys.exit('Successfully finished')