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

[community-extensions] Remove & Purge specific version pkg in zypperpkg #66713

Open
wants to merge 1 commit into
base: community-extensions
Choose a base branch
from

Conversation

winddss
Copy link

@winddss winddss commented Jul 15, 2024

What does this PR do?

Add param "version" to _uninstall() remove() & purge() in zypperpkg to allow remove the package with the specific version, do not remove all packages with different versions.

What issues does this PR fix or reference?

Fixes: openSUSE/salt#658
Reference: 585145f

Got the param "version" from parse_targets **kwargs, and pass it to the "zypper remove" command.

Also need the #66714 in master branch for pkg.py, to check in the pkg list with the specific version after the "zypper remove" run successfully.

Previous Behavior

salt.states.apply pkg.removed in zypperpkg will remove all packages with different versions when you have a specific version defined in sls file.

New Behavior

module zypperpkg will remove the specific version of the package only when the version defined in sls file.

Commits signed with GPG?

Yes

Copy link

welcome bot commented Jul 15, 2024

Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
Please be sure to review our Code of Conduct. Also, check out some of our community resources including:

There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar.
If you have additional questions, email us at [email protected]. We’re glad you’ve joined our community and look forward to doing awesome things with you!

@salt-project-bot-prod-environment salt-project-bot-prod-environment bot changed the title Remove & Purge specific version pkg in zypperpkg [community-extensions] Remove & Purge specific version pkg in zypperpkg Jul 15, 2024
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.

1 participant