From 1c1d8cf8916f7ceddd274a53116412abe89649b7 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Tue, 25 Jun 2013 11:14:26 +0100 Subject: [PATCH] Make force hints imply force-autopkgtest. --- britney.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/britney.py b/britney.py index 6ca72ac..6b3bb8c 100755 --- a/britney.py +++ b/britney.py @@ -1784,9 +1784,12 @@ class Britney(object): e.addhtml( "autopkgtest for %s %s: %s" % (adtsrc, adtver, status)) if status != "PASS": + hints = self.hints.search( + 'force-autopkgtest', package=adtsrc) + hints.extend( + self.hints.search('force', package=adtsrc)) forces = [ - x for x in self.hints.search( - 'force-autopkgtest', package=adtsrc) + x for x in hints if self.same_source(adtver, x.version) ] if forces: e.addhtml(