From 808527442f9d032643cf3f832d01134dbcfab6c7 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Jan 10 2022 21:26:38 +0000 Subject: mockbuild: default to use the local Mock configuration Relates: https://pagure.io/rpkg/pull-request/597 Merges: https://pagure.io/fedpkg/pull-request/461 JIRA: RHELCMP-7845 Signed-off-by: Pavel Raiskup --- diff --git a/fedpkg/__init__.py b/fedpkg/__init__.py index 0f18909..a52c70d 100644 --- a/fedpkg/__init__.py +++ b/fedpkg/__init__.py @@ -455,6 +455,12 @@ class Commands(pyrpkg.Commands): else: self.log.info(bodhi.override_str(override, minimal=False)) + @staticmethod + def use_local_mock_config(_, force_local): + if force_local is not None: + return force_local + return True + if __name__ == "__main__": from fedpkg.__main__ import main