Remove remaining "approve" hint support code

Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
debian
Adam D. Barratt 12 years ago
parent f7391fc335
commit b33714af92

@ -840,7 +840,7 @@ class Britney(object):
else: else:
hints.add_hint(l, who) 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 = {} z = {}
for hint in hints[x]: for hint in hints[x]:
package = hint.package package = hint.package
@ -870,12 +870,6 @@ class Britney(object):
if len(hints["block"]) == 0 and len(hints["block-udeb"]) == 0: 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") 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 return hints
def write_heidi(self, filename): def write_heidi(self, filename):

Loading…
Cancel
Save