mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-08 00:51:36 +00:00
hint_tester: accept all hints
For those hints which don't cause an immediate run (i.e. other than easy, hint and force-hint), re-build the excuses after adding the hint so that the actions are accounted for in later hints. Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
This commit is contained in:
parent
8b09f949b6
commit
07918e2164
@ -2533,6 +2533,11 @@ class Britney(object):
|
|||||||
# quit the hint tester
|
# quit the hint tester
|
||||||
if input and input[0] in ('quit', 'exit'):
|
if input and input[0] in ('quit', 'exit'):
|
||||||
break
|
break
|
||||||
|
elif input and input[0] in ('remove', 'approve', 'urgent', 'age-days',
|
||||||
|
'block', 'block-udeb', 'unblock', 'unblock-udeb',
|
||||||
|
'block-all', 'force'):
|
||||||
|
self.hints.add_hint(' '.join(input), 'hint-tester')
|
||||||
|
self.write_excuses()
|
||||||
# run a hint
|
# run a hint
|
||||||
elif input and input[0] in ('easy', 'hint', 'force-hint'):
|
elif input and input[0] in ('easy', 'hint', 'force-hint'):
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user