From 235c78ddfe39e3e7240329ea79b821a4e3572599 Mon Sep 17 00:00:00 2001 From: Mathieu Le Marec - Pasquet Date: Thu, 4 Jun 2015 14:00:05 +0200 Subject: [PATCH] Use apt_pkg.version_compare if available This refs #24397 Signed-off-by: Mathieu Le Marec - Pasquet --- salt/states/pkg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/states/pkg.py b/salt/states/pkg.py index a164d6e3cc..3c334c318a 100644 --- a/salt/states/pkg.py +++ b/salt/states/pkg.py @@ -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]: