From b4623d52ca95d958090c37fb23310d7916623e40 Mon Sep 17 00:00:00 2001 From: Yu Ming Zhu Date: Jan 05 2024 10:00:45 +0000 Subject: extra changes by draft suffix change --- diff --git a/cli/koji_cli/commands.py b/cli/koji_cli/commands.py index 814b656..4050fcc 100644 --- a/cli/koji_cli/commands.py +++ b/cli/koji_cli/commands.py @@ -2822,7 +2822,7 @@ def anon_handle_list_tagged(goptions, session, args): else: fmt = "%(name)s-%(version)s-%(release)s.%(arch)s%(draft_suffix)s" for x in data: - x['draft_suffix'] = (' (#draft_%s)' % x['build_id']) if x.get('draft') else '' + x['draft_suffix'] = (' (,draft_%s)' % x['build_id']) if x.get('draft') else '' if options.sigs: fmt = "%(sigkey)s " + fmt else: @@ -2888,7 +2888,7 @@ def anon_handle_list_buildroot(goptions, session, args): line = nvra if options.verbose: if rinfo.get('draft'): - line += " (#draft_%s)" % rinfo['build_id'] + line += " (,draft_%s)" % rinfo['build_id'] if rinfo.get('is_update'): line += " [update]" print(line) diff --git a/kojihub/kojihub.py b/kojihub/kojihub.py index 1ad6ffd..b66e820 100644 --- a/kojihub/kojihub.py +++ b/kojihub/kojihub.py @@ -6050,7 +6050,7 @@ def new_build(data, strict=False): If the build to create is a draft, the release field is the target release rather than its actual release with draft suffix. The draft suffix will be - generated here as #draft_. + generated here as ",draft_". If strict is specified, raise an exception, if build already exists. """