From 6c859f843fac6c11ec2297ef5c72b74f712fc0dc Mon Sep 17 00:00:00 2001 From: twangboy Date: Fri, 15 Nov 2024 15:03:57 -0700 Subject: [PATCH] Fix version comparison in pandoc --- pandoc.sls | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandoc.sls b/pandoc.sls index 3eb3c5f27..376afd135 100644 --- a/pandoc.sls +++ b/pandoc.sls @@ -5,7 +5,8 @@ {%- endload%} pandoc: {%- for version in versions %} - {%- if salt["pkg.version_cmp"](version, "2.2") > 0 %} + {%- set parts = version.split(".") %} + {%- if [parts[0], parts[1]] | map('int') | list >= [2, 2]%} # Starting in version 2.2 "-x86_64" is added to the filename {%- set file_name = "pandoc-" ~ version ~ "-windows-x86_64.msi" %} {%- else %}