mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #26694 from terminalmage/bp-26693
Backport #26693 to 2015.5
This commit is contained in:
commit
4040a312f9
1 changed files with 3 additions and 3 deletions
|
@ -105,9 +105,9 @@ def latest_version(*names, **kwargs):
|
|||
continue
|
||||
pkgname += '--{0}'.format(flavor) if flavor else ''
|
||||
cur = pkgs.get(pkgname, '')
|
||||
if not cur or __salt__['pkg_resource.compare'](pkg1=cur,
|
||||
oper='<',
|
||||
pkg2=pkgver):
|
||||
if not cur or salt.utils.compare_versions(ver1=cur,
|
||||
oper='<',
|
||||
ver2=pkgver):
|
||||
ret[pkgname] = pkgver
|
||||
|
||||
# Return a string if only one package name passed
|
||||
|
|
Loading…
Add table
Reference in a new issue