From 4ddb92db214e3a4510f8970783ca6a58a6b5fb84 Mon Sep 17 00:00:00 2001 From: "Adam D. Barratt" Date: Sat, 22 Oct 2011 14:47:00 +0000 Subject: [PATCH] Fix up the addition of "unblock" hints for t-p-u approvals. Thanks to Niels Thykier for the original idea. Signed-off-by: Adam D. Barratt --- britney.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/britney.py b/britney.py index 2f6e6c2..7b9b8e8 100755 --- a/britney.py +++ b/britney.py @@ -831,7 +831,9 @@ class Britney: # A (t-)p-u approval overrides an unstable block for p in hints["approve"]: - hints["unblock"][p] = hints["approve"][p] + for o in hints.search('unblock', package=p.package): + o.set_active(False) + hints.add_hint('unblock %s/%s' % (p.package, p.version), p.user) return hints