Browse Source

switch piuparts policy to detailed excuse info

devuan-deployment
Ivo De Decker 1 year ago
parent
commit
76f33a5fc2
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      britney2/policies/policy.py

+ 5
- 2
britney2/policies/policy.py View File

@@ -729,7 +729,10 @@ class PiupartsPolicy(BasePolicy):

if url is not None:
piuparts_info['piuparts-test-url'] = url
excuse.addhtml(msg)
if result.is_rejected:
excuse.add_verdict_info(result, msg)
else:
excuse.addinfo(msg)

if result.is_rejected:
for ignore_hint in self.hints.search('ignore-piuparts',
@@ -739,7 +742,7 @@ class PiupartsPolicy(BasePolicy):
'issued-by': ignore_hint.user
}
result = PolicyVerdict.PASS_HINTED
excuse.addhtml("Ignoring piuparts issue as requested by {0}".format(ignore_hint.user))
excuse.addinfo("Ignoring piuparts issue as requested by {0}".format(ignore_hint.user))
break

return result


Loading…
Cancel
Save