From e3ea97a0bbc456b008b2ce54fa50d03bdc03fcbe Mon Sep 17 00:00:00 2001 From: amandel Date: Sun, 1 Dec 2024 12:43:39 +0100 Subject: [PATCH] Support tgz file type - IBM archives come as tgz. - implements #235 --- bin/functions | 2 ++ update_data.bash | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/functions b/bin/functions index 8a9946cf..1441020e 100755 --- a/bin/functions +++ b/bin/functions @@ -169,6 +169,8 @@ function install { ;; *tar.gz) tar xf "${package_filename}" ;; + *tgz) tar xf "${package_filename}" + ;; *) echo "Cannot extract ${package_filename}" exit 1 ;; diff --git a/update_data.bash b/update_data.bash index 9aad1808..67dd036c 100755 --- a/update_data.bash +++ b/update_data.bash @@ -51,7 +51,7 @@ do done RELEASE_QUERY='.[] - | select(.file_type | IN("tar.gz", "zip")) + | select(.file_type | IN("tar.gz", "tgz", "zip")) | .["features"] = (.features | map(select(IN("musl", "javafx", "lite", "large_heap")))) | [([.vendor, if (.image_type == "jre") then .image_type else empty end, if (.jvm_impl == "openj9") then .jvm_impl else empty end, if ((.features | length) == 0) then empty else (.features | join("-")) end, .version] | join("-")), .filename, .url, .sha256] | @tsv'