mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +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
1 changed files with 1 additions and 1 deletions
|
@ -1262,7 +1262,7 @@ def latest(
|
|||
|
||||
targets = {}
|
||||
problems = []
|
||||
cmp_func = __salt__.get('version_cmp')
|
||||
cmp_func = __salt__.get('pkg.version_cmp', __salt__.get('version_cmp'))
|
||||
for pkg in desired_pkgs:
|
||||
if not avail[pkg]:
|
||||
if not cur[pkg]:
|
||||
|
|
Loading…
Add table
Reference in a new issue