Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2023-07-08 11:04:42 +0200
committerErich Eckner <git@eckner.net>2023-07-08 11:04:42 +0200
commite8ee5a7c75b76243b301f174eb9f9eb2ea19a3c7 (patch)
tree275df815057c7f811c0255e0f17979403eb2f258 /lib
parentafb61048b689b15b4e21e0ff94d03a6a3aa79954 (diff)
extract_source_directory(): put tmpfile into tmp_dir, so it gets cleaned up
Diffstat (limited to 'lib')
-rwxr-xr-xlib/common-functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/common-functions b/lib/common-functions
index 5c2e333..b9cd2ca 100755
--- a/lib/common-functions
+++ b/lib/common-functions
@@ -473,7 +473,7 @@ extract_source_directory() {
&& [ "${repository}" != 'build-support' ]; then
local pkgbase_translated
pkgbase_translated=$(gitlab_project_name_to_path "${pkgbase}")
- tmptarfile=$(mktemp 'tmp.upstream-package.XXXXXXXXXX')
+ tmptarfile=$(mktemp "${tmp_dir}"'/tmp.upstream-package.XXXXXXXXXX')
pkgtarfile="${tmp_dir}/${tmptarfile}"
curl -o "$pkgtarfile" -fLSs "https://buildmaster.archlinux32.org/upstream-packages/${pkgbase_translated}-${revision}.tar.gz"
res=$?