openSUSE / salt

openSUSE and SUSE patches and backports for SaltStack
Apache License 2.0
22 stars 52 forks source link

Potential fix Zypperpkg does not use the version parameter #658 #667

Closed winddss closed 1 month ago

winddss commented 3 months ago

What does this PR do?

What issues does this PR fix or reference?

Fixes: #658

Previous Behavior

The zypperpkg module does not use the version parameter to remove only that specified package, zypperpkg removes the package by using its name, which results in both versions being removed.

New Behavior

zypperpkg just removes the specific version of the package, will keep other versions of the package.

Commits signed with GPG?

Yes

This fix reference & based on upstream commit: https://github.com/openSUSE/salt/commit/585145f4b382508ef7a6cc6f1cb33697b9a606b8