mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-23 00:11:32 +00:00
do not group the ppc64el rebuilds by their bileto ppa
This commit is contained in:
parent
fd20237673
commit
f078aa28d0
@ -15,6 +15,7 @@ from britney2.policies.policy import BasePolicy, PolicyVerdict
|
|||||||
LAUNCHPAD_URL = "https://api.launchpad.net/1.0/"
|
LAUNCHPAD_URL = "https://api.launchpad.net/1.0/"
|
||||||
PRIMARY = LAUNCHPAD_URL + "ubuntu/+archive/primary"
|
PRIMARY = LAUNCHPAD_URL + "ubuntu/+archive/primary"
|
||||||
INCLUDE = ["~bileto-ppa-service/", "~ci-train-ppa-service/"]
|
INCLUDE = ["~bileto-ppa-service/", "~ci-train-ppa-service/"]
|
||||||
|
EXCLUDE = ["~ci-train-ppa-service/+archive/ubuntu/4810", "~ci-train-ppa-service/+archive/ubuntu/4815", "~ci-train-ppa-service/+archive/ubuntu/4816"]
|
||||||
|
|
||||||
|
|
||||||
class SourcePPAPolicy(BasePolicy, Rest):
|
class SourcePPAPolicy(BasePolicy, Rest):
|
||||||
@ -105,6 +106,8 @@ class SourcePPAPolicy(BasePolicy, Rest):
|
|||||||
sourceppa = self.lp_get_source_ppa(source_name, version) or ""
|
sourceppa = self.lp_get_source_ppa(source_name, version) or ""
|
||||||
verdict = excuse.policy_verdict
|
verdict = excuse.policy_verdict
|
||||||
self.source_ppas_by_pkg[source_name][version] = sourceppa
|
self.source_ppas_by_pkg[source_name][version] = sourceppa
|
||||||
|
if [team for team in EXCLUDE if team in sourceppa]:
|
||||||
|
return PolicyVerdict.PASS
|
||||||
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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user