mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-06-03 05:41:30 +00:00
Minor optimisation of force handling
Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
parent
56fa65f596
commit
fd614062ae
@ -1499,10 +1499,10 @@ class Britney(object):
|
|||||||
forces = self.hints.search('force', package=src, version=source_u.version)
|
forces = self.hints.search('force', package=src, version=source_u.version)
|
||||||
if forces:
|
if forces:
|
||||||
excuse.dontinvalidate = True
|
excuse.dontinvalidate = True
|
||||||
if not excuse.is_valid and forces:
|
if not excuse.is_valid:
|
||||||
excuse.addhtml("Should ignore, but forced by %s" % (forces[0].user))
|
excuse.addhtml("Should ignore, but forced by %s" % (forces[0].user))
|
||||||
excuse.force()
|
excuse.force()
|
||||||
excuse.is_valid = True
|
excuse.is_valid = True
|
||||||
|
|
||||||
self.excuses[excuse.name] = excuse
|
self.excuses[excuse.name] = excuse
|
||||||
return excuse.is_valid
|
return excuse.is_valid
|
||||||
|
Loading…
x
Reference in New Issue
Block a user