extra changes by draft suffix change

This commit is contained in:
Yu Ming Zhu 2023-12-05 15:15:01 +00:00
parent 025b0a136f
commit b4623d52ca
2 changed files with 3 additions and 3 deletions

View file

@ -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)

View file

@ -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_<buildid>.
generated here as ",draft_<buildid>".
If strict is specified, raise an exception, if build already exists.
"""