From 83f25ca602efb05c09907dbe653b18dc8da011e7 Mon Sep 17 00:00:00 2001 From: "Adam D. Barratt" Date: Fri, 18 Jan 2013 18:47:06 +0000 Subject: [PATCH] Remove remaining "approve" hint support code Signed-off-by: Adam D. Barratt --- britney.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/britney.py b/britney.py index 28b5b96..4353992 100755 --- a/britney.py +++ b/britney.py @@ -840,7 +840,7 @@ class Britney(object): else: hints.add_hint(l, who) - for x in ["approve", "block", "block-all", "block-udeb", "unblock", "unblock-udeb", "force", "urgent", "remove", "age-days"]: + for x in ["block", "block-all", "block-udeb", "unblock", "unblock-udeb", "force", "urgent", "remove", "age-days"]: z = {} for hint in hints[x]: package = hint.package @@ -870,12 +870,6 @@ class Britney(object): if len(hints["block"]) == 0 and len(hints["block-udeb"]) == 0: self.__log("WARNING: No block hints at all, not even udeb ones!", type="W") - # A (t-)p-u approval overrides an unstable block - for p in hints["approve"]: - 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 def write_heidi(self, filename):