From 77797aa2557fd714a89c8dd320114ca84ce27d11 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Tue, 1 Aug 2023 05:00:46 +0200 Subject: [PATCH] More version confusion fixes. --- bookworm/setup_scripts/install_for_target.sh | 3 ++- bookworm/setup_scripts/purge_nonrequireds.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bookworm/setup_scripts/install_for_target.sh b/bookworm/setup_scripts/install_for_target.sh index 6f42b56..1fac9d9 100755 --- a/bookworm/setup_scripts/install_for_target.sh +++ b/bookworm/setup_scripts/install_for_target.sh @@ -4,8 +4,9 @@ # # Ignores anything in an apt-mark/ file after the last newline. set -e +debian_version="bookworm" -config_tree_prefix="${HOME}/config/bullseye" +config_tree_prefix="${HOME}/config/${debian_version}" aptmark_dir="${config_tree_prefix}/apt-mark" for target in "$@"; do diff --git a/bookworm/setup_scripts/purge_nonrequireds.sh b/bookworm/setup_scripts/purge_nonrequireds.sh index 135196b..216779d 100755 --- a/bookworm/setup_scripts/purge_nonrequireds.sh +++ b/bookworm/setup_scripts/purge_nonrequireds.sh @@ -3,8 +3,9 @@ # "required" or not depended on by packages of priority "required" # or not listed in the argument-selected files of apt-mark/. set -e +debian_version="bookworm" -config_tree_prefix="${HOME}/config/bullseye" +config_tree_prefix="${HOME}/config/${debian_version}" aptmark_dir="${config_tree_prefix}/apt-mark" dpkg-query -Wf '${Package} ${Priority}\n' | grep ' required' | sed 's/ required//' > /tmp/list_white_unsorted -- 2.30.2