mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Check the version of the package, instead of the package name
This commit is contained in:
parent
59ea758efb
commit
9e944db706
1 changed files with 1 additions and 1 deletions
|
@ -1442,7 +1442,7 @@ def latest(
|
|||
msg = 'No information found for \'{0}\'.'.format(pkg)
|
||||
log.error(msg)
|
||||
problems.append(msg)
|
||||
elif pkg not in cur \
|
||||
elif not cur.get(pkg) \
|
||||
or salt.utils.compare_versions(ver1=cur[pkg], oper='<', ver2=avail[pkg], cmp_func=cmp_func):
|
||||
targets[pkg] = avail[pkg]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue