mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-03-10 02:41:10 +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
8e72456651
commit
33bc6cb7fb
@ -2533,6 +2533,11 @@ class Britney(object):
|
||||
# quit the hint tester
|
||||
if input and input[0] in ('quit', 'exit'):
|
||||
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
|
||||
elif input and input[0] in ('easy', 'hint', 'force-hint'):
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user