Skip to content

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

Open
jordyb6 wants to merge 1 commit intovoxpupuli:mainfrom
jordyb6:fix/versionlock-redhat
Open

fix: Parse versionlocked packages properly for RHEL 8+#266
jordyb6 wants to merge 1 commit intovoxpupuli:mainfrom
jordyb6:fix/versionlock-redhat

Conversation

@jordyb6
Copy link

@jordyb6 jordyb6 commented Jan 19, 2026

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

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.

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

1 participant