summaryrefslogtreecommitdiff
path: root/bin/db-update
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-09-04 13:58:29 +0200
committerErich Eckner <git@eckner.net>2017-09-04 13:58:29 +0200
commiteb0c7b81544cd07ac62d297cddb8b82b337c42c7 (patch)
tree080419725b1f1ec2548a9d0acabffb95fbb4d1f7 /bin/db-update
parent827c9085a729f64cddc01a89c9a013ad10221f8f (diff)
downloadbuilder-eb0c7b81544cd07ac62d297cddb8b82b337c42c7.tar.xz
bin/db-update: remove stubs of delete_pacakges
Diffstat (limited to 'bin/db-update')
-rwxr-xr-xbin/db-update34
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