From 36cc0e93f00e9e99ce37ba1448df435a5d2409b6 Mon Sep 17 00:00:00 2001 From: Phil Clifford Date: Tue, 22 Oct 2024 20:54:16 +0100 Subject: [PATCH] fix(fedora): only list available editions where a release is selected fixes #1493 --- quickget | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/quickget b/quickget index d62556e387..bf2ea61bde 100755 --- a/quickget +++ b/quickget @@ -211,6 +211,7 @@ function handle_missing() { # Handle odd missing Fedora combinations case "${OS}" in fedora) + # First we need to handle the Beta naming kludge if [[ "${RELEASE}" == "41_Beta" ]]; then NRELEASE="41" else @@ -713,7 +714,11 @@ function releases_fedora() { function editions_fedora() { #shellcheck disable=SC2046,SC2005 - echo $(web_pipe "https://getfedora.org/releases.json" | jq -r 'map(select(.arch=="x86_64" and .variant!="Labs" and .variant!="IoT" and .variant!="Container" and .variant!="Cloud" and .variant!="Everything" and .subvariant!="Security" and .subvariant!="Server_KVM" and .subvariant!="SoaS")) | map(.subvariant) | unique | .[]') + if [[ -z ${RELEASE} ]]; then + echo $(web_pipe "https://getfedora.org/releases.json" | jq -r "map(select(.arch==\"x86_64\" and .variant!=\"Labs\" and .variant!=\"IoT\" and .variant!=\"Container\" and .variant!=\"Cloud\" and .variant!=\"Everything\" and .subvariant!=\"Security\" and .subvariant!=\"Server_KVM\" and .subvariant!=\"SoaS\")) | map(.subvariant) | unique | .[]") + else + echo $(web_pipe "https://getfedora.org/releases.json" | jq -r "map(select(.arch==\"x86_64\" and .version==\"${RELEASE/_/ }\" and .variant!=\"Labs\" and .variant!=\"IoT\" and .variant!=\"Container\" and .variant!=\"Cloud\" and .variant!=\"Everything\" and .subvariant!=\"Security\" and .subvariant!=\"Server_KVM\" and .subvariant!=\"SoaS\")) | map(.subvariant) | unique | .[]") + fi } function releases_freebsd() {