mirror of
https://src.koozali.org/infra/smeserver-koji.git
synced 2024-12-22 15:37:00 +01:00
use tag2distrepo config options
This commit is contained in:
parent
82d4e7237e
commit
d2cc008091
@ -14,18 +14,18 @@ import logging
|
||||
def tag2distrepo_sme(cbtype, tag, build, user, force=False):
|
||||
logger = logging.getLogger('koji.plugin.tag2distrepo_sme')
|
||||
|
||||
if not tag['extra'].get("tag2distrepo.enabled"):
|
||||
if not tag['extra'].get("tag2distrepo_sme.enabled"):
|
||||
logger.debug("No tag2distrepo_sme enabled for tag %s" % tag['name'])
|
||||
return
|
||||
if not tag['arches']:
|
||||
raise ValueError("Tag %s has no arches configured but tag2distrepo_sme is enabled" % tag['name'])
|
||||
|
||||
keys = tag['extra'].get("tag2distrepo_sme.keys", '').split()
|
||||
inherit = tag['extra'].get("tag2distrepo_sme.inherit", False)
|
||||
latest = tag['extra'].get("tag2distrepo_sme.latest", False)
|
||||
split_debuginfo = tag['extra'].get("tag2distrepo_sme.split_debuginfo", False)
|
||||
skip_missing = tag['extra'].get("tag2distrepo_sme.skip_missing_signatures", False)
|
||||
|
||||
keys = tag['extra'].get("tag2distrepo.keys", '').split()
|
||||
inherit = tag['extra'].get("tag2distrepo.inherit", 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)
|
||||
|
||||
if keys:
|
||||
logger.debug("Ensuring signed RPMs are written out")
|
||||
[rpms, _] = readTaggedRPMS(tag['id'], rpmsigs=True)
|
||||
@ -34,7 +34,7 @@ def tag2distrepo_sme(cbtype, tag, build, user, force=False):
|
||||
if rpm['sigkey'] == key:
|
||||
write_signed_rpm(rpm['id'], key, False)
|
||||
|
||||
if tag['extra'].get("tag2distrepo_sme.allow_missing_signatures"):
|
||||
if tag['extra'].get("tag2distrepo.allow_missing_signatures"):
|
||||
task_opts = {
|
||||
'arch': tag['arches'].split(),
|
||||
'comp': None,
|
||||
|
Loading…
Reference in New Issue
Block a user