Configurable tag2distrepo options
Related: https://pagure.io/koji/issue/2820
This commit is contained in:
parent
5b8465a0e8
commit
ee32666722
2 changed files with 12 additions and 3 deletions
|
|
@ -339,6 +339,12 @@ It uses the following options on a tag to control behaviour:
|
|||
- ``tag2distrepo.enabled``: set to "true" to enable automatic distrepos
|
||||
- ``tag2distrepo.keys``: set to a space-separated list of keys to use for distrepos
|
||||
|
||||
Following parameters correspond to relevant ``brew dist-repo`` options.
|
||||
|
||||
- ``tag2distrepo.inherit``: follow inheritance (default: False)
|
||||
- ``tag2distrepo.latest``: use only latest tagged builds (default: False)
|
||||
- ``tag2distrepo.split_debuginfo``: separate directory for debuginfo default: False
|
||||
|
||||
The tag must have at least one arch configured on it.
|
||||
|
||||
Installing plugin on Koji Hub
|
||||
|
|
|
|||
|
|
@ -23,6 +23,9 @@ def tag2distrepo(cbtype, tag, build, user, force=False, strict=True):
|
|||
"Tag %s has no arches configured but tag2distrepo is enabled" % tag['name'])
|
||||
|
||||
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)
|
||||
|
||||
if keys:
|
||||
logger.debug("Ensuring signed RPMs are written out")
|
||||
|
|
@ -37,10 +40,10 @@ def tag2distrepo(cbtype, tag, build, user, force=False, strict=True):
|
|||
'comp': None,
|
||||
'delta': [],
|
||||
'event': None,
|
||||
'inherit': False,
|
||||
'latest': False,
|
||||
'inherit': inherit,
|
||||
'latest': latest,
|
||||
'multilib': False,
|
||||
'split_debuginfo': False,
|
||||
'split_debuginfo': split_debuginfo,
|
||||
'skip_missing_signatures': False,
|
||||
'allow_missing_signatures': not keys,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue