mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-02 14:11:30 +00:00
BlockPolicy: Replace print with logger.info
Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
parent
2fea931da3
commit
c4371b9f58
@ -973,10 +973,9 @@ class BlockPolicy(BasePolicy):
|
|||||||
if m.group(1) == 'un':
|
if m.group(1) == 'un':
|
||||||
if hint.version != version or hint.suite.name != suite_name or \
|
if hint.version != version or hint.suite.name != suite_name or \
|
||||||
(hint.architecture != arch and hint.architecture != 'source'):
|
(hint.architecture != arch and hint.architecture != 'source'):
|
||||||
print('hint mismatch: %s %s %s' % (version, arch, suite_name))
|
self.logger.info('hint mismatch: %s %s %s', version, arch, suite_name)
|
||||||
mismatches = True
|
mismatches = True
|
||||||
else:
|
else:
|
||||||
print('hint match')
|
|
||||||
unblocked[m.group(2)] = hint.user
|
unblocked[m.group(2)] = hint.user
|
||||||
excuse.add_hint(hint)
|
excuse.add_hint(hint)
|
||||||
else:
|
else:
|
||||||
@ -1009,7 +1008,6 @@ class BlockPolicy(BasePolicy):
|
|||||||
verdict = PolicyVerdict.REJECTED_NEEDS_APPROVAL
|
verdict = PolicyVerdict.REJECTED_NEEDS_APPROVAL
|
||||||
return verdict
|
return verdict
|
||||||
|
|
||||||
|
|
||||||
def apply_src_policy_impl(self, block_info, suite, source_name, source_data_tdist, source_data_srcdist, excuse):
|
def apply_src_policy_impl(self, block_info, suite, source_name, source_data_tdist, source_data_srcdist, excuse):
|
||||||
return self._check_blocked(source_name, "source", source_data_srcdist.version, suite, excuse)
|
return self._check_blocked(source_name, "source", source_data_srcdist.version, suite, excuse)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user