Skip to content

Commit

Permalink
Add config flag for running scans after Copr builds
Browse files Browse the repository at this point in the history
  • Loading branch information
lbarcziova committed Jul 19, 2024
1 parent bca148f commit 082c5ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packit/config/common_package_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ def __init__(
require: Optional[RequirementsConfig] = None,
status_name_template: Optional[str] = None,
sig: Optional[str] = None,
differential_scan_after_copr_build: Optional[bool] = True,
):
self.config_file_path: Optional[str] = config_file_path
self.specfile_path: Optional[str] = specfile_path
Expand Down Expand Up @@ -360,6 +361,8 @@ def __init__(

self.parse_time_macros = parse_time_macros or {}

self.differential_scan_after_copr_build = differential_scan_after_copr_build

@property
def dist_git_base_url(self) -> str:
return self.dist_git_instance.url
Expand Down
1 change: 1 addition & 0 deletions packit/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ class CommonConfigSchema(Schema):
version_update_mask = fields.String(missing=None)

parse_time_macros = fields.Dict(missing=None)
differential_scan_after_copr_build = fields.Boolean(missing=True)

@staticmethod
def spec_source_id_serialize(value: CommonPackageConfig):
Expand Down

0 comments on commit 082c5ce

Please sign in to comment.