Skip to content

Commit

Permalink
Fix: Prevent full system upgrade in pkg.installed for Arch Linux
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Akm0d committed Mar 21, 2024
1 parent 637fe0b commit dace06d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion salt/modules/pacmanpkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ def install(name=None,
cmd.append('-S')
if refresh is True:
cmd.append('-y')
if sysupgrade is True or (sysupgrade is None and refresh is True):
if sysupgrade is True:
cmd.append('-u')
cmd.extend(['--noprogressbar', '--noconfirm', '--needed'])
wildcards = []
Expand Down

0 comments on commit dace06d

Please sign in to comment.