Update deprecated policy comments

This commit is contained in:
Jana Cupova 2023-04-03 15:27:58 +02:00 committed by Tomas Kopecek
parent 650a149bea
commit b0a9985235
2 changed files with 3 additions and 2 deletions

View file

@ -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)