From e8ee5a7c75b76243b301f174eb9f9eb2ea19a3c7 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sat, 8 Jul 2023 11:04:42 +0200 Subject: extract_source_directory(): put tmpfile into tmp_dir, so it gets cleaned up --- lib/common-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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=$? -- cgit v1.2.3-70-g09d2