Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/build-packages
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2023-05-24 06:24:49 +0200
committerErich Eckner <git@eckner.net>2023-05-24 06:24:49 +0200
commitf026f3947655aa8cb025a9bd04ee0ba567946c03 (patch)
tree2175d5a392c3baefb3ffc12f64ddb2d9f43cb93c /bin/build-packages
parentdd5644370fab070b7137b7369316797acedacb3f (diff)
revert shallow clone of git sources
* `makepkg --verifysource` does a `git fetch --all -p` * that makes the clone unshallow anyways ...
Diffstat (limited to 'bin/build-packages')
-rwxr-xr-xbin/build-packages36
1 files changed, 0 insertions, 36 deletions
diff --git a/bin/build-packages b/bin/build-packages
index 821491a..a5cd235 100755
--- a/bin/build-packages
+++ b/bin/build-packages
@@ -492,42 +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
- eval "$(
- sed '
- :a
- s/^\(\S\+\)-/\1_/
- ta
- ' 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")
- git init "${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}"
- done
- )
if CARCH="${arch}" makepkg --verifysource 2> "${log_file}"; then
success=true
rm "${log_file}"