2022-04-26 02:11:53 +00:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2022-04-27 23:25:53 +00:00
|
|
|
arch="$(apk --print-arch)"
|
2022-04-26 02:11:53 +00:00
|
|
|
|
2023-07-18 21:10:49 +00:00
|
|
|
. /usr/share/abuild/default.conf
|
2022-04-26 02:11:53 +00:00
|
|
|
. /etc/abuild.conf
|
2022-05-01 07:57:11 +00:00
|
|
|
. /etc/qsign.conf
|
2022-04-26 02:11:53 +00:00
|
|
|
|
2022-05-01 07:57:11 +00:00
|
|
|
: ${repos:="main community testing"}
|
|
|
|
|
|
|
|
for repo in $repos; do
|
2022-06-20 05:22:13 +00:00
|
|
|
cd "$REPODEST/$repo/$arch" || continue
|
2023-04-26 00:09:30 +00:00
|
|
|
flock /dev/shm/qsign-lock-$repo sh -c "
|
2023-04-22 11:47:10 +00:00
|
|
|
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
|
|
|
|
}
|
2023-04-22 11:43:34 +00:00
|
|
|
abuild-sign APKINDEX.tar.gz
|
2023-04-26 00:09:30 +00:00
|
|
|
" || echo failed.
|
2022-04-26 02:11:53 +00:00
|
|
|
done
|