From be5450c060ab4556a79b11852c3c3de34a2f0693 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 6 Nov 2017 16:15:26 +0100 Subject: bin/common-functions, bin/db-update: print_list_of_archaic_packages new -- ignore archaic packages for dependency considerations --- bin/db-update | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'bin/db-update') diff --git a/bin/db-update b/bin/db-update index 241acf0..279e44f 100755 --- a/bin/db-update +++ b/bin/db-update @@ -484,8 +484,11 @@ find "${work_dir}/package-infos" -name '*.groups' \ sort -u > \ "${tmp_dir}/base-packages" -# shellcheck disable=SC2086 -printf '%s\n' ${packages_to_force_unstage} > \ +{ + # shellcheck disable=SC2086 + printf '%s\n' ${packages_to_force_unstage} + print_list_of_archaic_packages 'build-list' +} > \ "${tmp_dir}/force-unstage-packages" # calculate what packages should be unstaged: @@ -501,17 +504,19 @@ if [ -z "$( )" ]; then >&2 echo 'db-update unstage: we pretend, the group "base" does not exist, so we only fetch "direct" dependencies on base-packages' for s in "${tmp_dir}/all-builds" "${tmp_dir}/all-depends"; do - grep -v ' base$' "${s}" > \ - "${s}.no-base" || \ - true + sed '/ base$/d' "${s}" > \ + "${s}.no-base" done find_biggest_subset_of_packages "${tmp_dir}/done-packages" "${tmp_dir}/build-list-packages" "${tmp_dir}/all-builds.no-base" "${tmp_dir}/all-depends.no-base" "${tmp_dir}/force-unstage-packages" > \ "${tmp_dir}/unstage-packages" fi -# shellcheck disable=SC2086 -printf '%s\n' ${packages_to_force_stabilize} > \ +{ + # shellcheck disable=SC2086 + printf '%s\n' ${packages_to_force_stabilize} + print_list_of_archaic_packages 'build-list' 'staging' 'testing' +} > \ "${tmp_dir}/force-stabilize-packages" # calculate what packages should be stabilized -- cgit v1.2.3-54-g00ecf