summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/copy-to-build-support2
-rwxr-xr-xbin/delete-packages2
-rwxr-xr-xbin/return-assignment2
3 files changed, 6 insertions, 0 deletions
diff --git a/bin/copy-to-build-support b/bin/copy-to-build-support
index 9cd90f3..5382235 100755
--- a/bin/copy-to-build-support
+++ b/bin/copy-to-build-support
@@ -64,6 +64,8 @@ flock ${wait_for_lock} 8
tmp_dir=$(mktemp -d "${work_dir}/tmp.copy-to-build-support.0.XXXXXXXXXX")
trap 'rm -rf --one-file-system "${tmp_dir}"' EXIT
+export TMPDIR="${tmp_dir}"
+
to_copy='build_assignment epoch pkgver pkgrel sub_pkgrel has_issues is_tested pkgname architecture'
sed -n '
s/.\+/\0 \0/
diff --git a/bin/delete-packages b/bin/delete-packages
index 8c3bc8f..7d2a3bd 100755
--- a/bin/delete-packages
+++ b/bin/delete-packages
@@ -96,6 +96,8 @@ fi
tmp_dir=$(mktemp -d "${work_dir}/tmp.delete-packages.XXXXXXXXXX")
trap 'rm -rf --one-file-system "${tmp_dir}"' EXIT
+export TMPDIR="${tmp_dir}"
+
# shellcheck disable=SC2016
{
printf 'CREATE TEMPORARY TABLE `to_deletes` (`id` BIGINT, UNIQUE KEY (`id`));\n'
diff --git a/bin/return-assignment b/bin/return-assignment
index b7666b6..630349c 100755
--- a/bin/return-assignment
+++ b/bin/return-assignment
@@ -263,6 +263,8 @@ tmp_dir=$(mktemp -d "${work_dir}/tmp.return-assignment.XXXXXXXXXX")
cd "${tmp_dir}"
trap clean_up_tmp_dir EXIT
+export TMPDIR="${tmp_dir}"
+
# extract package(s)
tar -x \
--wildcards \