qsign: lock for sign
This commit is contained in:
parent
b46a33534b
commit
9ea9c9dfa4
2 changed files with 7 additions and 4 deletions
|
@ -1,12 +1,13 @@
|
||||||
# Contributor: psykose <alice@ayaya.dev>
|
# Contributor: psykose <alice@ayaya.dev>
|
||||||
# Maintainer: psykose <alice@ayaya.dev>
|
# Maintainer: psykose <alice@ayaya.dev>
|
||||||
pkgname=qsign
|
pkgname=qsign
|
||||||
pkgver=6
|
pkgver=7
|
||||||
pkgrel=0
|
pkgrel=0
|
||||||
pkgdesc="quicksign local apk repos"
|
pkgdesc="quicksign local apk repos"
|
||||||
url="https://git.ddd.rip/ptrcnull/ptrcports"
|
url="https://git.ddd.rip/ptrcnull/ptrcports"
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
license="ISC"
|
license="ISC"
|
||||||
|
depends="abuild apk-tools s6"
|
||||||
source="qsign qsign.conf"
|
source="qsign qsign.conf"
|
||||||
options="!check" # ???????????????????????????????????????????
|
options="!check" # ???????????????????????????????????????????
|
||||||
|
|
||||||
|
@ -16,6 +17,6 @@ package() {
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
58f84526ed3496f77c2a5ee585d40a9a15efa76c6c8efff8c8cdc42d3f4f310520f12d419aa2d9dca382d6aebaee49780abc65a0ab8084e4de870d2b36c92758 qsign
|
57fc14f7697e06f9121923af6182a2acc976de30016661d3399c3bad46c1df01398c8287b6abeb40659b48f3c253cee726892c2677e08b616f00c8094550d400 qsign
|
||||||
c6791d0a4d74acfa81b74f4129b31e008fd409be0e2dad4fb2c04187385666a47d475d4795fe20dbc5afcc5b4e2a35462bd43fb5fac006e03bafad93de4f65bc qsign.conf
|
c6791d0a4d74acfa81b74f4129b31e008fd409be0e2dad4fb2c04187385666a47d475d4795fe20dbc5afcc5b4e2a35462bd43fb5fac006e03bafad93de4f65bc qsign.conf
|
||||||
"
|
"
|
||||||
|
|
|
@ -9,6 +9,8 @@ arch="$(apk --print-arch)"
|
||||||
|
|
||||||
for repo in $repos; do
|
for repo in $repos; do
|
||||||
cd "$REPODEST/$repo/$arch" || continue
|
cd "$REPODEST/$repo/$arch" || continue
|
||||||
apk index --no-warnings --rewrite-arch=$arch ./*.apk -o APKINDEX.tar.gz -x APKINDEX.tar.gz
|
s6-setlock /dev/shm/qsign-lock-$repo sh -c '
|
||||||
abuild-sign APKINDEX.tar.gz
|
apk index --no-warnings --rewrite-arch=$arch ./*.apk -o APKINDEX.tar.gz -x APKINDEX.tar.gz
|
||||||
|
abuild-sign APKINDEX.tar.gz
|
||||||
|
'
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue