mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Check the version of the package, instead of the package name
This commit is contained in:
parent
59ea758efb
commit
9e944db706
@ -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…
Reference in New Issue
Block a user