From db5f6620191e01bdb2d235887ad328884df56f3b Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Sun, 18 Feb 2024 12:14:20 -0800 Subject: [PATCH] Also move the definition next to where it is used --- live-build/auto/config | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/live-build/auto/config b/live-build/auto/config index bd7af847..a4bfee74 100755 --- a/live-build/auto/config +++ b/live-build/auto/config @@ -1209,14 +1209,6 @@ case $SUBPROJECT in ;; esac -case $PROJECT in - kubuntu|ubuntu-mate|ubuntu-unity|ubuntukylin) - # only used now for the 'minimal-remove' functionality, - # which is not used at all in layered images - BASE_SEED='desktop' - ;; -esac - if [ "$PROJECT:${SUBPROJECT:-}" = ubuntu-cpc:minimized ]; then # We install a lxc script that installs the snap when invoked and # don't want any other snaps. @@ -1232,6 +1224,14 @@ fi # grab a list of packags to remove for a "minimal" installation from the seed # mirror for this project +case $PROJECT in + kubuntu|ubuntu-mate|ubuntu-unity|ubuntukylin) + # only used now for the 'minimal-remove' functionality, + # which is not used at all in layered images + BASE_SEED='desktop' + ;; +esac + if [ -n "${BASE_SEED}" ]; then minimal_packages_url=${SEEDMIRROR}/${SEED}/${BASE_SEED}.minimal-remove echo -n "Checking ${minimal_packages_url} for a minimal installation list... "