Skip to content

Run only once the validate_filters per call - #1370

Merged
danigm merged 1 commit into
mainfrom
check-validate-filteers
Jul 23, 2025
Merged

Run only once the validate_filters per call#1370
danigm merged 1 commit into
mainfrom
check-validate-filteers

Conversation

@danigm

@danigm danigm commented Jul 22, 2025

Copy link
Copy Markdown
Member

When the cli tool is called with "-i" option in combination with a list of spec/rpm files it runs the validate_installed_packages and also the validate_files. These methods check the list of packages to lint to just run post check function and validate used filters in rpmlintrc.

This patch makes sure to do not call the post check and validation twice, checking if there are also "files" during the validate_installed_packages. That way the is_last will be only true in the latter call inside validate_files.

Fix #1368

@danigm
danigm force-pushed the check-validate-filteers branch from 88608e4 to ecc94e2 Compare July 22, 2025 08:11
When the cli tool is called with "-i" option in combination with a list of
spec/rpm files it runs the validate_installed_packages and also the
validate_files. These methods check the list of packages to lint to just run
post check function and validate used filters in rpmlintrc.

This patch makes sure to do not call the post check and validation twice,
checking if there are also "files" during the validate_installed_packages. That
way the is_last will be only true in the latter call inside validate_files.

Fix #1368
@danigm
danigm force-pushed the check-validate-filteers branch from ecc94e2 to 2edd59c Compare July 22, 2025 08:17
@danigm
danigm merged commit 568d9d3 into main Jul 23, 2025
12 checks passed
@danigm
danigm deleted the check-validate-filteers branch July 23, 2025 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

validate_filters() called twice in the same run if specfiles/packages supplied in the same invocation as installed packages

1 participant