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 with pkg.installed/removed using yum (bsc#1195895) - 3000 #496

Merged

Conversation

vzhestkov
Copy link
Contributor

@vzhestkov vzhestkov commented Feb 18, 2022

What does this PR do?

On calling pkg.installed or pkg.removed the package name normalisation is performing few timess.
As the result it leads to removing .ARCH if used in the name of the package as suffix, but actually a part of the name.

What issues does this PR fix or reference?

Fixes: https://github.com/SUSE/spacewalk/issues/16974
Upstream PR: saltstack/salt#62029

Previous Behavior

Error on trying to install/remove the packages with such names:
uptrack-updates-4.14.35-2047.502.4.el7uek.x86_64 (x86_64 is not an arch there, but a part of the name, the arch of this package is noarch)
weird-name-1.2.3-1234.5.6.test7tst.x86_64-20220214-2.1.noarch (where noarch the real package arch and x86_64 is a part of the name)

New Behavior

No errors on installing/removing the package

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.

@vzhestkov vzhestkov changed the title Normalize the package name only once on install/remove - 3000 [WIP] Normalize the package name only once on install/remove - 3000 Mar 2, 2022
@vzhestkov vzhestkov marked this pull request as draft March 2, 2022 16:25
@vzhestkov vzhestkov force-pushed the fix-pkg-for-weird-names-3000 branch from 05ff303 to 96df577 Compare May 4, 2022 13:19
@vzhestkov vzhestkov force-pushed the fix-pkg-for-weird-names-3000 branch from 96df577 to 6c8f98f Compare May 5, 2022 06:45
@vzhestkov vzhestkov changed the title [WIP] Normalize the package name only once on install/remove - 3000 [WIP] Make install/remove working for packages containing ARCH in the name (bsc#1195895) - 3000 May 5, 2022
@vzhestkov vzhestkov force-pushed the fix-pkg-for-weird-names-3000 branch 4 times, most recently from 10ff660 to 12c5a00 Compare May 6, 2022 11:03
@vzhestkov vzhestkov force-pushed the fix-pkg-for-weird-names-3000 branch from 12c5a00 to 7badbdf Compare May 6, 2022 11:42
@vzhestkov vzhestkov changed the title [WIP] Make install/remove working for packages containing ARCH in the name (bsc#1195895) - 3000 Normalize package names once on using pkg.installed/removed with yum (bsc#1195895) - 3000 May 6, 2022
@vzhestkov vzhestkov marked this pull request as ready for review May 6, 2022 14:24
@vzhestkov vzhestkov changed the title Normalize package names once on using pkg.installed/removed with yum (bsc#1195895) - 3000 Normalize package names once with pkg.installed/removed using yum (bsc#1195895) - 3000 May 11, 2022
@vzhestkov vzhestkov requested review from agraul and meaksh May 11, 2022 11:13
@vzhestkov vzhestkov merged commit 8ad21bf into openSUSE:openSUSE-3000 Jun 27, 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.

2 participants