mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Changed options to emerge for ebuild.update
Added options --newuse and --oneshot to emerge command in ebuild.update. The --newuse option will detect USE flag changes in packages, allowing a package to be reinstalled at the same version but updated with new USE flags. The --oneshot will prevent the package from being recorded in the world file. Gentoo maintains a "world" set that is all the packages that were explicitly installed. If the user is updating a dependancy, they would not want the package added to the world file, if they are updating a package already in the world file, it will remain there.
This commit is contained in:
parent
ee4a8e0699
commit
886a9b17c0
@ -221,7 +221,7 @@ def update(pkg, refresh=False):
|
||||
|
||||
ret_pkgs = {}
|
||||
old_pkgs = list_pkgs()
|
||||
cmd = 'emerge --update --quiet {0}'.format(pkg)
|
||||
cmd = 'emerge --update --newuse --oneshot --quiet {0}'.format(pkg)
|
||||
__salt__['cmd.retcode'](cmd)
|
||||
new_pkgs = list_pkgs()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user