mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Adds more logic for detecting latest
This commit is contained in:
parent
40a66a2501
commit
c4357a6d80
1 changed files with 2 additions and 3 deletions
|
@ -707,9 +707,8 @@ def install(name=None, refresh=False, pkgs=None, saltenv='base', **kwargs):
|
|||
# will not be detected
|
||||
if latest:
|
||||
for pkg_name in latest:
|
||||
ret[pkg_name] = {'current': new[pkg_name],
|
||||
'comment': 'Version of "latest" found in the\n'
|
||||
'software definition file.'}
|
||||
if old[pkg_name] == new[pkg_name]:
|
||||
ret[pkg_name] = {'current': new[pkg_name]}
|
||||
|
||||
# Sometimes the installer takes awhile to update the registry
|
||||
# This checks 10 times, 3 seconds between each for a registry change
|
||||
|
|
Loading…
Add table
Reference in a new issue