Add a "block-all new-source" hint

This hint will block all "new" source migrations.  Source migrations
for packages already in testing will be affected by this.  As usual,
this hint can be overruled by an unblock hint.

Closes: GH#8

Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
Niels Thykier 2016-05-15 14:06:12 +00:00
parent 481f7fde08
commit c224c55d88

View File

@ -1443,7 +1443,8 @@ class Britney(object):
blocked['block-udeb'] = hint blocked['block-udeb'] = hint
excuse.add_hint(hint) excuse.add_hint(hint)
if 'block' not in blocked: if 'block' not in blocked:
for hint in self.hints.search(type='block-all', package='source'): for hint in self.hints.search(type='block-all'):
if hint.package == 'source' or (not source_t and hint.package == 'new-source'):
blocked['block'] = hint blocked['block'] = hint
excuse.add_hint(hint) excuse.add_hint(hint)
break break