mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-11 10:31:30 +00:00
check for force hints as part of the source ppa policy
If our policy marks a bunch of related packages here as non-candidates, a force hint processed later for the package which was not a candidate is insufficient. Instead, check here for a force hint that would unconditionally mark a package a candidate before marking related packages as non-candidates.
This commit is contained in:
parent
a46ea8d3e5
commit
79d1bdec0b
@ -87,6 +87,14 @@ class SourcePPAPolicy(BasePolicy, Rest):
|
|||||||
if not [team for team in INCLUDE if team in sourceppa]:
|
if not [team for team in INCLUDE if team in sourceppa]:
|
||||||
return PolicyVerdict.PASS
|
return PolicyVerdict.PASS
|
||||||
|
|
||||||
|
# check for a force hint; we have to check here in addition to
|
||||||
|
# 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):
|
||||||
|
accept = True
|
||||||
|
|
||||||
shortppa = sourceppa.replace(LAUNCHPAD_URL, '')
|
shortppa = sourceppa.replace(LAUNCHPAD_URL, '')
|
||||||
sourceppa_info[source_name] = shortppa
|
sourceppa_info[source_name] = shortppa
|
||||||
# Check for other packages that might invalidate this one
|
# Check for other packages that might invalidate this one
|
||||||
|
Loading…
x
Reference in New Issue
Block a user