Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2023-05-24 07:42:29 +0200
committerErich Eckner <git@eckner.net>2023-05-24 07:42:29 +0200
commit2722efe6a807ed4aede5001b6d032a579d772c0e (patch)
tree2175d5a392c3baefb3ffc12f64ddb2d9f43cb93c
parent255e2e1ff43fda550540085c7f223a380bfae59a (diff)
shallow clone does not work :-(
warning: remote HEAD refers to nonexistent ref, unable to checkout fatal: reference is not a tree: 9a167ee2f8b9a0859fbab6cfdc276cf1f272effe ==> ERROR: Failure while creating working copy of gcc git repo Aborting...
-rwxr-xr-xbin/build-packages35
1 files changed, 0 insertions, 35 deletions
diff --git a/bin/build-packages b/bin/build-packages
index d18f0e0..a5cd235 100755
--- a/bin/build-packages
+++ b/bin/build-packages
@@ -492,41 +492,6 @@ while [ "${count}" -ne 0 ] && \
date -u --iso-8601=seconds | \
cut -d+ -f1
).build-log"
- ( # new shell is intentional
- set -e
- CARCH="${arch}"
- . /usr/share/makepkg/util/source.sh
- bash -c ' # new shell is intentional
- CARCH="'"${arch}"'"
- . PKGBUILD
- printf '"'"'%s\n'"'"' "${source[@]}"
- ' \
- | grep '^git+' \
- | while read -r netfile; do
- fragment=$(get_uri_fragment "$netfile")
- [ -z "${fragment}" ] && continue
- case "${fragment%%=*}" in
- 'commit'|'tag')
- ref="${fragment##*=}"
- ;;
- 'branch')
- ref="origin/${fragment##*=}"
- ;;
- *)
- continue
- esac
- path=$(get_filename "$netfile")
- [ -d "${path}" ] && continue
- git init --bare "${path}"
- url=$(get_url "$netfile")
- url=${url#git+}
- url=${url%%#*}
- url=${url%%\?*}
- git -C "${path}" remote add origin "${url}"
- git -C "${path}" fetch --depth=1 origin "${ref}"
- git -C "${path}" fetch --depth=1 origin
- done
- )
if CARCH="${arch}" makepkg --verifysource 2> "${log_file}"; then
success=true
rm "${log_file}"