Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/delete-packages
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-04-15 16:28:49 +0200
committerErich Eckner <git@eckner.net>2018-04-15 16:28:49 +0200
commit38546fab75d75d7bbb04b74f8d8604ebe12a0258 (patch)
tree0148cf002e596e9c44f45564ef11db2d22abca94 /bin/delete-packages
parentda9a7ce76831ae47032974534f75795494b1d028 (diff)
bin/copy-to-build-support bin/delete-packages bin/return-assignment: set TMPDIR out of tmpfs, so repo-* won't run out of space
Diffstat (limited to 'bin/delete-packages')
-rwxr-xr-xbin/delete-packages2
1 files changed, 2 insertions, 0 deletions
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'