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 <adam@adam-barratt.org.uk>
debian
Adam D. Barratt 13 years ago
parent 02ab64272c
commit 4ddb92db21

@ -831,7 +831,9 @@ class Britney:
# A (t-)p-u approval overrides an unstable block # A (t-)p-u approval overrides an unstable block
for p in hints["approve"]: 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 return hints

Loading…
Cancel
Save