From 2cdc81401092caf0c70541f71b11b029e1d323cd Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 28 Sep 2018 19:34:51 +0200 Subject: misc/PKGBUILD-appendix-for-archive-server: tell archive-server the type of archive (currently only "git") --- misc/PKGBUILD-appendix-for-archive-server | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'misc') diff --git a/misc/PKGBUILD-appendix-for-archive-server b/misc/PKGBUILD-appendix-for-archive-server index b2bdf79..b99268c 100644 --- a/misc/PKGBUILD-appendix-for-archive-server +++ b/misc/PKGBUILD-appendix-for-archive-server @@ -12,13 +12,15 @@ for ((i=0; i<${#source[@]}; i++)); do s/\\|$// s/[.]/[.]/g ' - )"'\)\(?signed\)\?#\(\(tag\|commit\)=\S\+\)$@\2 \3 \4 \5@ + )"'\)\(?signed\)\?#\(\(tag\|commit\)=\S\+\)$@git \2 \3 \4 \5@ T p ' ) if [ -n "${infos}" ]; then source[${i}]=$( + type="${infos%% *}" + infos="${infos#* }" if [ -n "${infos%% *}" ]; then prefix="${infos%% *}" else @@ -52,9 +54,10 @@ for ((i=0; i<${#source[@]}; i++)); do sed 's/=/%3D/g' ) - printf '%s-%s.tar.gz::https://archive-server.archlinux32.org/?p=%s&r=%s%s&%s\n' \ + printf '%s-%s.tar.gz::https://archive-server.archlinux32.org/?t=%s&p=%s&r=%s%s&%s\n' \ "${prefix}" \ "${pkgver}" \ + "${type}" \ "${prefix_64}" \ "${repo64}" \ "${key_check}" \ -- cgit v1.2.3-70-g09d2