From 209846b00b4ba7ba6818d351cc0f8fb1429920a8 Mon Sep 17 00:00:00 2001 From: trevorb Date: Thu, 28 Nov 2024 21:49:10 +1100 Subject: [PATCH] add with_src option --- plugins/tag2distrepo/tag2distrepo_sme.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/tag2distrepo/tag2distrepo_sme.py b/plugins/tag2distrepo/tag2distrepo_sme.py index 8e256f6..318d785 100644 --- a/plugins/tag2distrepo/tag2distrepo_sme.py +++ b/plugins/tag2distrepo/tag2distrepo_sme.py @@ -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,