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:15:02 +0200
committerErich Eckner <git@eckner.net>2023-07-08 11:15:02 +0200
commit387b8383c37ea8151d8c4557b5acb7c778d29334 (patch)
treeafac05d7b5a78d75f8d7a6514b385897c98e37a1 /lib
parent2181916b1997023bf89f02ac271b7547434b76b6 (diff)
extract_source_directory(): fix file reference
Diffstat (limited to 'lib')
-rwxr-xr-xlib/common-functions7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/common-functions b/lib/common-functions
index f860e3c..6a11326 100755
--- a/lib/common-functions
+++ b/lib/common-functions
@@ -474,9 +474,8 @@ extract_source_directory() {
local pkgbase_translated
pkgbase_translated=$(gitlab_project_name_to_path "${pkgbase}")
tmptarfile=$(mktemp "${tmp_dir}"'/tmp.upstream-package.XXXXXXXXXX')
- pkgtarfile="${tmp_dir}/${tmptarfile}"
url="https://buildmaster.archlinux32.org/upstream-packages/${pkgbase_translated}-${revision}.tar.gz"
- curl -o "$pkgtarfile" -fLSs "${url}"
+ curl -o "$tmptarfile" -fLSs "${url}"
res=$?
if [ "$res" -ne 0 ]; then
>&2 printf 'Download upstream-package "%s" from upstream via buildmaster cache failed. Curl exit code was %s.' \
@@ -484,8 +483,8 @@ extract_source_directory() {
"${res}"
return 1
fi
- if [ -f "${pkgtarfile}" ]; then
- tar -xz -f "${pkgtarfile}" --strip-components=1 -C "${output}" -- "${pkgbase_translated}-${revision}"
+ if [ -f "${tmptarfile}" ]; then
+ tar -xz -f "${tmptarfile}" --strip-components=1 -C "${output}" -- "${pkgbase_translated}-${revision}"
printf '\n' >> \
"${output}/PKGBUILD"
else