Fix NVRA regex parsing for EL10 packages#83
Merged
Conversation
…rsing DIST_RE only matched single-digit EL versions (\.el\d), so .el10 was partially stripped as .el1, corrupting releases like 1.el10~bootstrap into 10~bootstrap. NVRA_RE then failed to match because its release group started with \w+ which excludes tilde. Packages like qt6-qtremoteobjects with release 1.el10~bootstrap crashed the match_rh_repos activity in process_repomd.
rlhennig
approved these changes
May 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
DIST_REonly matched single-digit EL versions (\.el\d), so.el10was partially stripped as.el1, corrupting releases like1.el10~bootstrapinto10~bootstrapNVRA_RE/NEVRA_RErelease groups started with\w+which excludes~and^, so cleaned releases containing RPM tilde suffixes (e.g.1~bootstrap) could not matchmatch_rh_reposactivity inprocess_repomdwhen processing Rocky 10.2 repos containing packages likeqt6-qtremoteobjectswith release1.el10~bootstrapChanges
DIST_RE:\d→\d+to handle multi-digit EL versions (10+)NVRA_RE/NEVRA_RE: release initial segment\w+→[\w~^]+to accept RPM tilde/caret suffixesNVRA_RE.search()inprocess_repomdto log a warning and skip instead of crashing the whole activity on unrecognized NVRAsTest plan