diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/db-update | 34 |
1 files changed, 7 insertions, 27 deletions
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 |