From 56c066b75384d5d02a15cdb1983110a012468909 Mon Sep 17 00:00:00 2001 From: Iain Lane Date: Wed, 20 May 2020 15:42:38 +0100 Subject: [PATCH] Allow piuparts policy to be disabled by config --- britney.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/britney.py b/britney.py index 210e0b7..1720ce3 100755 --- a/britney.py +++ b/britney.py @@ -511,7 +511,8 @@ class Britney(object): self._policy_engine.add_policy(DependsPolicy(self.options, self.suite_info)) self._policy_engine.add_policy(RCBugPolicy(self.options, self.suite_info)) - self._policy_engine.add_policy(PiupartsPolicy(self.options, self.suite_info)) + if getattr(self.options, 'piuparts_enable', 'yes') == 'yes': + self._policy_engine.add_policy(PiupartsPolicy(self.options, self.suite_info)) if getattr(self.options, 'adt_enable') == 'yes': self._policy_engine.add_policy(AutopkgtestPolicy(self.options, self.suite_info)) self._policy_engine.add_policy(AgePolicy(self.options, self.suite_info, MINDAYS))