Update deprecated policy comments
This commit is contained in:
parent
650a149bea
commit
b0a9985235
2 changed files with 3 additions and 2 deletions
|
|
@ -1046,7 +1046,7 @@ class BuildTask(BaseTaskHandler):
|
|||
policy_data['target'] = target_info['name']
|
||||
if not self.opts.get('skip_tag'):
|
||||
policy_data['tag'] = dest_tag # id
|
||||
# backward-compatible deprecated policies (TODO: remove in 1.33)
|
||||
# backward-compatible deprecated policies (TODO: remove if py2 is dropped - rhel6 builders)
|
||||
if not SCM.is_scm_url(src) and not opts.get('scratch'):
|
||||
# let hub policy decide
|
||||
self.session.host.assertPolicy('build_from_srpm', policy_data)
|
||||
|
|
|
|||
|
|
@ -53,7 +53,8 @@ Examples of access control polices are:
|
|||
* dist_repo: control which distRepo tasks are allowed
|
||||
* build_rpm: control whether builds are allowed, this is superceding older ``build_from_srpm``
|
||||
to handle all task types. ``build_from_srpm`` and ``build_from_repo_id`` are now
|
||||
deprecated and will be removed in koji 1.33. Default policy allows everything.
|
||||
deprecated and will be removed when py2 support will be dropped (rhel6 builders).
|
||||
Default policy allows everything.
|
||||
* build_from_srpm [deprecated]: control whether builds from srpm are allowed
|
||||
* build_from_scm: control whether builds from the SCM are allowed and the behavior of the SCM
|
||||
* build_from_repo_id [deprecated]: control whether builds from user-specified repos ids are allowed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue