mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-02-10 22:17:36 +00:00
Invalidate excuse after each policy run
This fixes commit 497edc to really allow policies to see if the excuse has already been invalidated by previous policies. Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
parent
bcdb2b39cd
commit
40ccb4bdc6
@ -1457,9 +1457,8 @@ class Britney(object):
|
||||
v = policy.apply_policy(policy_info, suite, src, source_t, source_u, excuse)
|
||||
if v.value > policy_verdict.value:
|
||||
policy_verdict = v
|
||||
|
||||
if policy_verdict.is_rejected:
|
||||
excuse.is_valid = False
|
||||
if policy_verdict.is_rejected:
|
||||
excuse.is_valid = False
|
||||
|
||||
if suite in ('pu', 'tpu') and source_t:
|
||||
# o-o-d(ish) checks for (t-)p-u
|
||||
|
Loading…
x
Reference in New Issue
Block a user