add with_src option

This commit is contained in:
Trevor Batley 2024-11-28 21:49:10 +11:00
parent cdb822566e
commit 209846b00b

View File

@ -25,6 +25,9 @@ def tag2distrepo_sme(cbtype, tag, build, user, force=False):
latest = tag['extra'].get("tag2distrepo.latest", False)
split_debuginfo = tag['extra'].get("tag2distrepo.split_debuginfo", False)
skip_missing = tag['extra'].get("tag2distrepo.skip_missing_signatures", False)
myarches = tag['arches'].split()
if tag['extra'].get('tag2distrepo.with_src', False) == True:
myarches.append('src')
if keys:
logger.debug("Ensuring signed RPMs are written out")
@ -36,7 +39,7 @@ def tag2distrepo_sme(cbtype, tag, build, user, force=False):
if tag['extra'].get("tag2distrepo.allow_missing_signatures"):
task_opts = {
'arch': tag['arches'].split(),
'arch': myarches,
'comp': None,
'delta': [],
'event': None,
@ -49,7 +52,7 @@ def tag2distrepo_sme(cbtype, tag, build, user, force=False):
}
else:
task_opts = {
'arch': tag['arches'].split(),
'arch': myarches,
'comp': None,
'delta': [],
'event': None,