diff options
author | Erich Eckner <git@eckner.net> | 2018-09-28 19:34:51 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-09-28 19:34:51 +0200 |
commit | 2cdc81401092caf0c70541f71b11b029e1d323cd (patch) | |
tree | 3594008184306a2ab41c81281b0e8dbcf0c7b4e0 /misc | |
parent | 3e60f5296f151bb1df0757c99590ace75e6c65e4 (diff) | |
download | builder-2cdc81401092caf0c70541f71b11b029e1d323cd.tar.xz |
misc/PKGBUILD-appendix-for-archive-server: tell archive-server the type of archive (currently only "git")
Diffstat (limited to 'misc')
-rw-r--r-- | misc/PKGBUILD-appendix-for-archive-server | 7 |
1 files changed, 5 insertions, 2 deletions
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}" \ |