Skip to content

Commit

Permalink
Fix version comparison in pandoc
Browse files Browse the repository at this point in the history
  • Loading branch information
twangboy committed Nov 15, 2024
1 parent 3fe4c79 commit 6c859f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pandoc.sls
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down

0 comments on commit 6c859f8

Please sign in to comment.