mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Use apt_pkg.version_compare if available
This refs #24397 Signed-off-by: Mathieu Le Marec - Pasquet <kiorky@cryptelium.net>
This commit is contained in:
parent
1c0cd459f8
commit
235c78ddfe
@ -1262,7 +1262,7 @@ def latest(
|
|||||||
|
|
||||||
targets = {}
|
targets = {}
|
||||||
problems = []
|
problems = []
|
||||||
cmp_func = __salt__.get('version_cmp')
|
cmp_func = __salt__.get('pkg.version_cmp', __salt__.get('version_cmp'))
|
||||||
for pkg in desired_pkgs:
|
for pkg in desired_pkgs:
|
||||||
if not avail[pkg]:
|
if not avail[pkg]:
|
||||||
if not cur[pkg]:
|
if not cur[pkg]:
|
||||||
|
Loading…
Reference in New Issue
Block a user