summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-03-22 10:52:23 +0100
committerErich Eckner <git@eckner.net>2018-03-22 10:52:23 +0100
commit72c62099827c6fb033cd3b35dd914f1a5e3d0f2b (patch)
tree3d57d7a69b575f4dcc16f8e7ce0fb6777c75fa79 /bin
parent70759d4b9e38d8935d8dca40b2bf9e41651a9a07 (diff)
downloadbuilder-72c62099827c6fb033cd3b35dd914f1a5e3d0f2b.tar.xz
bin/db-update: extract package database in tmp_dir, not in /tmp's tmpfs
Diffstat (limited to 'bin')
-rwxr-xr-xbin/db-update2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/db-update b/bin/db-update
index 129a89d..5b0d56f 100755
--- a/bin/db-update
+++ b/bin/db-update
@@ -123,6 +123,8 @@ fi
tmp_dir=$(mktemp -d "${work_dir}/tmp.db-update.XXXXXXXXXX")
trap 'rm -rf --one-file-system "${tmp_dir}"' EXIT
+export TMPDIR="${tmp_dir}"
+
for source_stability in 'testing' 'staging'; do
find "${tmp_dir}" -mindepth 1 -delete