Skip to content

Commit

Permalink
feat(adopt): new jvm versions can contain + and are replaced by _
Browse files Browse the repository at this point in the history
… on archive name only
  • Loading branch information
sammy.smati committed Jan 23, 2024
1 parent 4091127 commit 665e200
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion java/post-map.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{%- set name = mapdata.adopt.pkg.name|replace('8U', mapdata.release ~ 'U') %}
{%- set jvm = 'hotspot' if 'jvm' not in mapdata.adopt else mapdata.adopt.jvm %}
{%- set uri = '%s%s/%s_%s_%s_%s'|format(mapdata.adopt.pkg.uri, jversion, name, mapdata.arch, mapdata.adopt.os, jvm) %}
{%- set url = '%s_%s'|format(uri, jversion|replace('-','',1)) %}
{%- set url = '%s_%s'|format(uri, jversion|replace('-','',1)|replace("+","_")) %}
{%- set name = 'adoptopenjdk-%s%s'|format(mapdata.release, '-' ~ mapdata.adopt.jvm if 'openj9' in jvm else '') %}

{%- elif 'amazon' in provider|lower %}
Expand Down

0 comments on commit 665e200

Please sign in to comment.