From c224c55d887da69ce0cf2cf5935f8e85b4d7e12d Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Sun, 15 May 2016 14:06:12 +0000 Subject: [PATCH] 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 --- britney.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/britney.py b/britney.py index 49e1559..f1e3e95 100755 --- a/britney.py +++ b/britney.py @@ -1443,10 +1443,11 @@ class Britney(object): blocked['block-udeb'] = hint excuse.add_hint(hint) if 'block' not in blocked: - for hint in self.hints.search(type='block-all', package='source'): - blocked['block'] = hint - excuse.add_hint(hint) - break + 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 + excuse.add_hint(hint) + break if suite in ('pu', 'tpu'): blocked['block'] = '%s-block' % (suite) excuse.needs_approval = True