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,