Modify the semantics of the "force" hint

Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>

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 <aba@debian.org>
bzr-import-20160707
Adam D. Barratt 15 years ago
parent eec67e9ae1
commit 2fff4744ee

@ -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

Loading…
Cancel
Save