From c048348021ee175f41704009d0ae39b50aed9db8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Forr=C3=B3?= Date: Tue, 17 Sep 2024 09:45:35 +0200 Subject: [PATCH] Apply configured bootstrap setup to Copr projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Nikola Forró --- packit_service/worker/helpers/build/copr_build.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packit_service/worker/helpers/build/copr_build.py b/packit_service/worker/helpers/build/copr_build.py index 8bb8271d2..4497155e8 100644 --- a/packit_service/worker/helpers/build/copr_build.py +++ b/packit_service/worker/helpers/build/copr_build.py @@ -16,7 +16,7 @@ from packit.config import JobConfig, JobType, JobConfigTriggerType from packit.config.aliases import get_aliases -from packit.config.common_package_config import Deployment +from packit.config.common_package_config import Deployment, MockBootstrapSetup from packit.config.package_config import PackageConfig from packit.exceptions import ( PackitCoprException, @@ -255,6 +255,13 @@ def additional_repos(self) -> Optional[List[str]]: """ return self.job_build.additional_repos if self.job_build else None + @property + def bootstrap(self) -> Optional[MockBootstrapSetup]: + """ + mock bootstrap feature setup. + """ + return self.job_build.bootstrap if self.job_build else None + @property def build_targets_all(self) -> Set[str]: """ @@ -897,6 +904,7 @@ def create_or_update_copr_project(self) -> str: list_on_homepage=self.list_on_homepage if overwrite_booleans else None, preserve_project=self.preserve_project if overwrite_booleans else None, additional_repos=self.additional_repos, + bootstrap=self.bootstrap, request_admin_if_needed=True, targets_dict=self.job_config.targets_dict, module_hotfixes=self.module_hotfixes if overwrite_booleans else None,