Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Gizdov <kgizdov@gmail.com>2020-05-20 18:20:22 +0300
committerLevente Polyak <anthraxx@archlinux.org>2021-01-26 20:38:53 +0100
commitd507db94906769aa73ef97157fba543f2a2d7d61 (patch)
treede18e02e5c3b5d406ab38398afc5949304a68bcb
parentaff81d34fd072e978925a0ad5d04ea0978ce42ed (diff)
offload-build: respect SRCEXT from makepkg.conf
-rwxr-xr-xoffload-build.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/offload-build.in b/offload-build.in
index 92f400c..34cb601 100755
--- a/offload-build.in
+++ b/offload-build.in
@@ -83,6 +83,9 @@ archbuild_cmd=("${repo}${archbuild_arch:+-$archbuild_arch}-build" "$@")
trap 'rm -rf $TEMPDIR' EXIT INT TERM QUIT
+# Load makepkg.conf variables to be available
+load_makepkg_config
+
# Use a source-only tarball as an intermediate to transfer files. This
# guarantees the checksums are okay, and guarantees that all needed files are
# transferred, including local sources, install scripts, and changelogs.
@@ -98,7 +101,7 @@ mapfile -t files < <(
# This is sort of bash golfing but it allows running a mildly complex
# command over ssh with a single connection.
# shellcheck disable=SC2145
- cat "$SRCPKGDEST"/*.src.tar.gz |
+ cat "$SRCPKGDEST"/*"$SRCEXT" |
ssh $server '
temp="${XDG_CACHE_HOME:-$HOME/.cache}/offload-build" &&
mkdir -p "$temp" &&
@@ -122,7 +125,6 @@ mapfile -t files < <(
if (( ${#files[@]} )); then
printf '%s\n' '' '-> copying files...'
- load_makepkg_config
scp "${files[@]/#/$server:}" "${TEMPDIR}/"
mv "${TEMPDIR}"/*.pkg.tar* "${PKGDEST:-${PWD}}/"
mv "${TEMPDIR}/PKGBUILD" "${PWD}/"