From fd614062ae1eaf9232bb98ee946e4a21ac05d294 Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Wed, 16 Nov 2016 21:08:14 +0000 Subject: [PATCH] Minor optimisation of force handling Signed-off-by: Niels Thykier --- britney.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/britney.py b/britney.py index cd6b9d3..76bee7e 100755 --- a/britney.py +++ b/britney.py @@ -1499,10 +1499,10 @@ class Britney(object): forces = self.hints.search('force', package=src, version=source_u.version) if forces: excuse.dontinvalidate = True - if not excuse.is_valid and forces: - excuse.addhtml("Should ignore, but forced by %s" % (forces[0].user)) - excuse.force() - excuse.is_valid = True + if not excuse.is_valid: + excuse.addhtml("Should ignore, but forced by %s" % (forces[0].user)) + excuse.force() + excuse.is_valid = True self.excuses[excuse.name] = excuse return excuse.is_valid