ptrcports/qsign/qsign
2023-04-22 13:47:10 +02:00

19 lines
533 B
Bash
Executable file

#!/bin/sh -e
arch="$(apk --print-arch)"
. /etc/abuild.conf
. /etc/qsign.conf
: ${repos:="main community testing"}
for repo in $repos; do
cd "$REPODEST/$repo/$arch" || continue
s6-setlock /dev/shm/qsign-lock-$repo sh -c "
apk index --no-warnings --rewrite-arch=$arch ./*.apk -o APKINDEX.tar.gz -x APKINDEX.tar.gz || {
echo 'index reuse failed; probably broken'
apk index --no-warnings --rewrite-arch=$arch ./*.apk -o APKINDEX.tar.gz
}
abuild-sign APKINDEX.tar.gz
"
done