Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normalize package names once on using pkg.installed/removed with yum #62029

Merged
merged 6 commits into from
Oct 17, 2022

Conversation

vzhestkov
Copy link
Contributor

What does this PR do?

On using pkg.installed or pkg.removed the package name normalization performed few times causing removing valid package name parts looks similar to ARCH name.
For example on trying to install the package uptrack-updates-4.14.35-2047.502.4.el7uek.x86_64-20220207-0.noarch it's possible that x86_64 will be wiped from the package name as it matches the name of the ARCH but actually the part of the name of the package. As the result it causing yum to return the error as it's unable to find the package with name uptrack-updates-4.14.35-2047.502.4.el7uek

Previous Behavior

Impossible to install the packages with ARCH specified in the name of the package.

New Behavior

It's possible to install such packages.

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes/No

Please review Salt's Contributing Guide for best practices.

See GitHub's page on GPG signing for more information about signing commits with GPG.

twangboy
twangboy previously approved these changes Oct 12, 2022
salt/modules/yumpkg.py Show resolved Hide resolved
@Ch3LL Ch3LL merged commit 6986a8a into saltstack:master Oct 17, 2022
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.

3 participants