summaryrefslogtreecommitdiff
path: root/bin/build-packages
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-01-18 15:21:01 +0100
committerErich Eckner <git@eckner.net>2018-01-18 15:21:01 +0100
commit633a9409ae245b06ad5ae6a9b68853879cad03dc (patch)
treec82de15d771c0441e0bca97c715449125590d6f5 /bin/build-packages
parent5fb9f8ad7843e087c974cc1af291b4f494824462 (diff)
downloadbuilder-633a9409ae245b06ad5ae6a9b68853879cad03dc.tar.xz
put name of creating script into name of temporary directories
Diffstat (limited to 'bin/build-packages')
-rwxr-xr-xbin/build-packages4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/build-packages b/bin/build-packages
index d827cdb..81afa7f 100755
--- a/bin/build-packages
+++ b/bin/build-packages
@@ -220,7 +220,7 @@ while [ "${count}" -ne 0 ]; do
if [ "${mod_git_revision}" = 'work-tree' ]; then
mod_git_revision=$(
# we can't just create an empty index-file with mktemp, because git doesn't like it
- tmp_subdir=$(mktemp -d);
+ tmp_subdir=$(mktemp -d 'tmp.build-packages.git.XXXXXXXXXX' --tmpdir)
trap 'rm -rf --one-file-system "${tmp_subdir}"' EXIT
export GIT_INDEX_FILE="${tmp_subdir}/index.new"
git -C "${repo_paths__archlinux32}" add -A
@@ -253,7 +253,7 @@ while [ "${count}" -ne 0 ]; do
recursively_umount_and_rm "${tmp_dir}"
exit "${err}"
}
- tmp_dir=$(mktemp -d "${work_dir}/tmp.XXXXXX")
+ tmp_dir=$(mktemp -d "${work_dir}/tmp.build-packages.XXXXXX")
trap bail_out EXIT
extract_source_directory "${git_repo}" "${git_revision}" "${mod_git_revision}" "${tmp_dir}" "${sub_pkgrel}"