diff options
author | Erich Eckner <git@eckner.net> | 2018-03-22 10:52:23 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-03-22 10:52:23 +0100 |
commit | 72c62099827c6fb033cd3b35dd914f1a5e3d0f2b (patch) | |
tree | 3d57d7a69b575f4dcc16f8e7ce0fb6777c75fa79 /bin | |
parent | 70759d4b9e38d8935d8dca40b2bf9e41651a9a07 (diff) | |
download | builder-72c62099827c6fb033cd3b35dd914f1a5e3d0f2b.tar.xz |
bin/db-update: extract package database in tmp_dir, not in /tmp's tmpfs
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/db-update | 2 |
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 |