Skip to content

Commit

Permalink
fix(fedora): only list available editions where a release is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
philclifford committed Oct 22, 2024
1 parent e0557d5 commit 36cc0e9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion quickget
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 36cc0e9

Please sign in to comment.