From c32ec4bc1cee542ae1a5de9797c171a08e7a2a86 Mon Sep 17 00:00:00 2001 From: lethliel Date: Mon, 11 Nov 2019 13:05:34 +0100 Subject: [PATCH] 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 --- osc/commandline.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osc/commandline.py b/osc/commandline.py index 8d0649a8..2b94b142 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -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")