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