1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-13 17:16:23 +01:00

appent opts.file to args not cmd_list

prepend to args instead to cmd_list. Otherwise the
changes file will be written into the given --file

osc vc --file=proposed.changes package.changes
This commit is contained in:
lethliel 2019-11-11 13:05:34 +01:00
parent f78057e2d5
commit c32ec4bc1c

View File

@ -8980,8 +8980,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
raise oscerr.WrongOptions('\'%s\': is no file' % opts.file)
args = list(args)
if not args:
cmd_list.append('')
cmd_list.append(opts.file)
args.append('')
args.append(opts.file)
if opts.just_edit:
cmd_list.append("-e")