mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-02-13 15:37:02 +00:00
force harder on sourceppa.
We need the force hinting here to modify the real excuses, otherwise it comes back around later.
This commit is contained in:
parent
79d1bdec0b
commit
dc624622c1
@ -91,8 +91,14 @@ class SourcePPAPolicy(BasePolicy, Rest):
|
||||
# checking in britney.py, otherwise /this/ package will later be
|
||||
# considered valid candidate but all the /others/ from the ppa will
|
||||
# be invalidated via this policy and not fixed by the force hint.
|
||||
if self.hints.search('force', package=source_name,
|
||||
version=source_data_srcdist.version):
|
||||
forces = self.hints.search('force', package=source_name,
|
||||
version=source_data_srcdist.version)
|
||||
if forces:
|
||||
excuse.dontinvalidate = True
|
||||
if not excuse.is_valid:
|
||||
excuse.addhtml("Should ignore, but forced by %s" % (forces[0].user))
|
||||
excuse.force()
|
||||
excuse.is_valid = True
|
||||
accept = True
|
||||
|
||||
shortppa = sourceppa.replace(LAUNCHPAD_URL, '')
|
||||
|
Loading…
x
Reference in New Issue
Block a user