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

[develop] Fix: Prevent full system upgrade in pkg.installed for Arch Linux #66255

Closed
wants to merge 1 commit into from

Conversation

Akm0d
Copy link
Contributor

@Akm0d Akm0d commented Mar 21, 2024

What does this PR do?

This change modifies the logic in the pacman module to only append the '-u' flag to the pacman command if sysupgrade is explicitly set to True. This prevents the pkg.installed state from triggering a full system upgrade by default on Arch Linux systems, addressing an issue where unintended system-wide upgrades could occur during package installation.

What issues does this PR fix or reference?

Fixes: #65200

Previous Behavior

The pkg.installed state would trigger a full system upgrade on Arch Linux systems by using the -u flag in the pacman command, even when only installing a single package.

New Behavior

The pkg.installed state only triggers a system upgrade on Arch Linux systems if sysupgrade is explicitly set to True, preventing unintended full system upgrades.

Commits signed with GPG?

No

@Akm0d Akm0d self-assigned this Mar 21, 2024
@Akm0d Akm0d requested a review from a team as a code owner March 21, 2024 18:19
@Akm0d Akm0d requested review from whytewolf and removed request for a team March 21, 2024 18:19
@salt-project-bot-prod-environment salt-project-bot-prod-environment bot changed the title Fix: Prevent full system upgrade in pkg.installed for Arch Linux [develop] Fix: Prevent full system upgrade in pkg.installed for Arch Linux Mar 21, 2024
This change modifies the logic in the pacman module to only append the '-u' flag to the pacman command if sysupgrade is explicitly set to True. This prevents the pkg.installed state from triggering a full system upgrade by default on Arch Linux systems.
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