From a9d426c1d195e4a28d23ab0b9fd0619a936cf6e3 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Dec 22 2021 15:40:28 +0000 Subject: mockbuild: default to use the local Mock configuration See also: https://pagure.io/rpkg/pull-request/597 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