From f078aa28d099d48725c7301d3166e7ae80b40ddf Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Mon, 28 Mar 2022 10:53:42 +0200 Subject: [PATCH] do not group the ppc64el rebuilds by their bileto ppa --- britney2/policies/sourceppa.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/britney2/policies/sourceppa.py b/britney2/policies/sourceppa.py index ea01e76..b203fb8 100644 --- a/britney2/policies/sourceppa.py +++ b/britney2/policies/sourceppa.py @@ -15,6 +15,7 @@ from britney2.policies.policy import BasePolicy, PolicyVerdict LAUNCHPAD_URL = "https://api.launchpad.net/1.0/" PRIMARY = LAUNCHPAD_URL + "ubuntu/+archive/primary" 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): @@ -105,6 +106,8 @@ class SourcePPAPolicy(BasePolicy, Rest): sourceppa = self.lp_get_source_ppa(source_name, version) or "" verdict = excuse.policy_verdict 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]: return PolicyVerdict.PASS