From 775cfc6f2bc2541942bd4fb4fdb3cb4f469d51af Mon Sep 17 00:00:00 2001 From: "Adam D. Barratt" Date: Thu, 25 Feb 2010 19:58:55 +0000 Subject: [PATCH] Modify the semantics of the "force" hint Signed-off-by: Adam D. Barratt Allow a package which is a candidate but invalidated by one or more dependencies to be "force"d. Based on a patch to britney by Andreas Barth --- britney.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/britney.py b/britney.py index 9c968ae..5e95418 100755 --- a/britney.py +++ b/britney.py @@ -1347,9 +1347,10 @@ class Britney: "though it fixes more than it introduces, whine at debian-release)" % pkg) # check if there is a `force' hint for this package, which allows it to go in even if it is not updateable + if src in self.hints["force"] and self.same_source(source_u[VERSION], self.hints["force"][src][0]): + excuse.dontinvalidate = 1 if not update_candidate and src in self.hints["force"] and \ self.same_source(source_u[VERSION], self.hints["force"][src][0]): - excuse.dontinvalidate = 1 excuse.addhtml("Should ignore, but forced by %s" % (self.hints["force"][src][1])) update_candidate = True