From 54edabb9926a4a31ef70e31a1e56b32bafc8e049 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Sun, 11 Feb 2024 23:38:58 +0100 Subject: [PATCH] comment: resolve project name --- osc/commandline.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/osc/commandline.py b/osc/commandline.py index 987e25e9..7d5de3d2 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -10251,8 +10251,12 @@ Please submit there instead, or use --nodevelproject to force direct submission. comment = opts.comment if args[0] == 'list': + if args[1] == 'package' or args[1] == 'project': + args[2] = self._process_project_name(args[2]) print_comments(apiurl, args[1], *args[2:]) elif args[0] == 'create': + if args[1] == 'package' or args[1] == 'project': + args[2] = self._process_project_name(args[2]) result = create_comment(apiurl, args[1], comment, *args[2:], parent=opts.parent) print(result)