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-23 13:37:13 +0200
committerErich Eckner <erich.eckner.ext@bestsecret.com>2023-05-23 13:37:13 +0200
commit8ab642824755b58abb8390f38a475cba05fd5e07 (patch)
tree0211550f0948cef6fb3cfcf303a726ba74a89b67
parent0515859f664070dd1a61a9b7f22ca058999a15a5 (diff)
extract_source_directory(): remove pkgbase transcription
* apparently, upstream renamed their repositories to match the pkgbase :-)
-rwxr-xr-xlib/common-functions12
1 files changed, 2 insertions, 10 deletions
diff --git a/lib/common-functions b/lib/common-functions
index 4000336..e6b43a5 100755
--- a/lib/common-functions
+++ b/lib/common-functions
@@ -457,16 +457,8 @@ extract_source_directory() {
if [ -n "${revision}" ] \
&& [ "${revision}" != '0000000000000000000000000000000000000000' ]; then
- local pkgbase_translated
- for substitution in '' 's@+@plus@g' 's@+@-@g'; do
- pkgbase_translated=$(
- printf '%s\n' "${pkgbase}" \
- | 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}" 2>/dev/null \
- && break
- done
+ curl -LSs "https://buildmaster.archlinux32.org/upstream-packages/${pkgbase}-${revision}.tar.gz" \
+ | tar -xz --strip-components=1 -C "${output}" -- "${pkgbase}-${revision}"
if [ ! -f "${output}/PKGBUILD" ]; then
>&2 printf 'failed to download/extract a PKGBUILD from upstream archlinux for %s %s\n' \
"${pkgbase}" "${revision}"