Minor optimisation of force handling

Signed-off-by: Niels Thykier <niels@thykier.net>
email-direct-upload-sponsor
Niels Thykier 8 years ago
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…
Cancel
Save