summaryrefslogtreecommitdiff
path: root/bin/return-assignment
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-09-18 10:46:51 +0200
committerErich Eckner <git@eckner.net>2018-09-18 10:46:51 +0200
commitd5e3e6b994deaf64eb8e4ffb9c5b3260aa9b5e93 (patch)
tree0623eb4c7bbc82674aeafe6d92d83acbe4f4a7e8 /bin/return-assignment
parent6a3b49ae66eea02569e80c1c0fa2043c159038e4 (diff)
downloadbuilder-d5e3e6b994deaf64eb8e4ffb9c5b3260aa9b5e93.tar.xz
do not delete lock files
Diffstat (limited to 'bin/return-assignment')
-rwxr-xr-xbin/return-assignment12
1 files changed, 0 insertions, 12 deletions
diff --git a/bin/return-assignment b/bin/return-assignment
index 191ff3b..8dc47ed 100755
--- a/bin/return-assignment
+++ b/bin/return-assignment
@@ -68,12 +68,6 @@ if ! verbose_flock -s -n 8; then
exit 1
fi
-clean_up_lock_file() {
- rm -f "${build_list_lock_file}"
-}
-
-trap clean_up_lock_file EXIT
-
if [ "$6" = 'ERROR' ]; then
# the build failed on the build slave
@@ -269,11 +263,6 @@ if ! verbose_flock -n 7; then
exit 1
fi
-clean_up_lock_file() {
- rm -f "${build_list_lock_file}"
- rm -f "${package_database_lock_file}"
-}
-
# shellcheck disable=SC2016
build_assignment_id=$(
{
@@ -337,7 +326,6 @@ fi
clean_up_tmp_dir() {
cd "${base_dir}"
rm -rf --one-file-system "${tmp_dir}"
- clean_up_lock_file
}
tmp_dir=$(mktemp -d "${work_dir}/tmp.return-assignment.XXXXXXXXXX")