Skip to content

Commit

Permalink
Apply configured bootstrap setup to Copr projects (#2531)
Browse files Browse the repository at this point in the history
Apply configured bootstrap setup to Copr projects

Fixes #2432.
Merge after packit/packit#2411.

Reviewed-by: Laura Barcziová
  • Loading branch information
softwarefactory-project-zuul[bot] authored Sep 17, 2024
2 parents 9e45eab + c048348 commit 2d4caae
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packit_service/worker/helpers/build/copr_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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]:
"""
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 2d4caae

Please sign in to comment.