Skip to content

fix: Parse versionlocked packages properly for RHEL 8+#266

Merged
rwaffen merged 1 commit into
voxpupuli:mainfrom
jordyb6:fix/versionlock-redhat
Mar 5, 2026
Merged

fix: Parse versionlocked packages properly for RHEL 8+#266
rwaffen merged 1 commit into
voxpupuli:mainfrom
jordyb6:fix/versionlock-redhat

Conversation

@jordyb6

@jordyb6 jordyb6 commented Jan 19, 2026

Copy link
Copy Markdown
Contributor

Pull Request (PR) description

RHEL 8+ uses a different format for the versionlock file:

RHEL 7 Epoch:Name-Version-Release.Arch 0:bash-4.2.46-34.el7.*
RHEL8+ Name-Epoch:Version-Release.Arch bash-0:4.4.19-14.el8.*

Since RHEL7 is EOL and not supported by this module anymore, I changed the command to parse for the first field instead of the second one.

This Pull Request (PR) fixes the following issues

Fixes #243

@jordyb6

jordyb6 commented Feb 10, 2026

Copy link
Copy Markdown
Contributor Author

Can someone take a look at this please?

@rwaffen rwaffen added the bug Something isn't working label Mar 5, 2026
@rwaffen

rwaffen commented Mar 5, 2026

Copy link
Copy Markdown
Member

LGTM

@rwaffen rwaffen merged commit f3ab1d8 into voxpupuli:main Mar 5, 2026
14 checks passed
@elfranne

elfranne commented Mar 5, 2026

Copy link
Copy Markdown
Contributor

It's a bit late to reply... sorry about that.
RHEL 7 is End of Maintenance (EOM) but not End of Life (EOL). Extended Life Cycle Support (ELS) is available until May 31, 2029. Source.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

os_patching.pinned_packages is populated incorrectly on RHEL8+ systems using python3-dnf-plugin-versionlock

3 participants