Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <erich.eckner.ext@bestsecret.com>2023-05-22 16:40:22 +0200
committerErich Eckner <erich.eckner.ext@bestsecret.com>2023-05-22 16:40:22 +0200
commitdf6e78794309c047bb020636d373d8cca183d009 (patch)
tree33419172c36ce2470817accab731b4fee094976b
parent8f4872a2ba82be5fc50f6f1b7fa7ed5642f3dafd (diff)
extract_source_directory: silence + final check
* we allow for some commands to fail, if in the end we have a PKGBUILD
-rwxr-xr-xlib/common-functions7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/common-functions b/lib/common-functions
index 9b439be..0c01968 100755
--- a/lib/common-functions
+++ b/lib/common-functions
@@ -468,9 +468,14 @@ extract_source_directory() {
| sed "${substitution}"
)
curl -LSs "https://buildmaster.archlinux32.org/upstream-packages/${pkgbase_translated}-${revision}.tar.gz" \
- | tar -xz --strip-components=1 -C "${output}" -- "${pkgbase_translated}-${revision}" \
+ | tar -xz --strip-components=1 -C "${output}" -- "${pkgbase_translated}-${revision}" 2>/dev/null \
&& break
done
+ if [ ! -f "${output}/PKGBUILD" ]; then
+ >&2 printf 'failed to download/extract a PKGBUILD from upstream archlinux for %s %s\n' \
+ "${pkgbase}" "${revision}"
+ exit 1
+ fi
printf '\n' >> \
"${output}/PKGBUILD"
fi