From eb0c7b81544cd07ac62d297cddb8b82b337c42c7 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 4 Sep 2017 13:58:29 +0200 Subject: bin/db-update: remove stubs of delete_pacakges --- bin/db-update | 34 +++++++--------------------------- 1 file changed, 7 insertions(+), 27 deletions(-) (limited to 'bin') diff --git a/bin/db-update b/bin/db-update index 6cc9cd2..18592fd 100755 --- a/bin/db-update +++ b/bin/db-update @@ -556,28 +556,15 @@ while [ -s "${tmp_dir}/new-keep-packages" ]; do done -# if build list is empty, remember all entries of 'deletion-list' -if grep -qvxF 'break_loops' "${work_dir}/build-list"; then - delete_packages='' -else - delete_packages=$( - cat "${work_dir}/deletion-list" - ) -fi - -if [ -z "${delete_packages}" ]; then - - # unlock build list +# unlock build list - rm -f "${build_list_lock_file}" - flock -u 9 +rm -f "${build_list_lock_file}" +flock -u 9 - clean_up_lock_file() { - rm -rf --one-file-system "${tmp_dir}" - rm -f "${package_database_lock_file}" - } - -fi +clean_up_lock_file() { + rm -rf --one-file-system "${tmp_dir}" + rm -f "${package_database_lock_file}" +} # calculate unstageable packages from keep_packages and done_packages @@ -630,11 +617,4 @@ move_packages $( ) -# delete packages from deletion-list - -if [ -n "${delete_packages}" ]; then - echo "there is something to delete:" - echo "${delete_packages}" -fi - clean_up_lock_file -- cgit v1.2.3-70-g09d2