From 6bdc9319294b70adbd2bdc951d004f6957224a44 Mon Sep 17 00:00:00 2001 From: psykose Date: Wed, 26 Apr 2023 00:09:30 +0000 Subject: [PATCH] qsign: use flock instead saves on some s6 deps --- qsign/APKBUILD | 6 +++--- qsign/qsign | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/qsign/APKBUILD b/qsign/APKBUILD index e0b0297..14bc2da 100644 --- a/qsign/APKBUILD +++ b/qsign/APKBUILD @@ -1,13 +1,13 @@ # Contributor: psykose # Maintainer: psykose pkgname=qsign -pkgver=9 +pkgver=10 pkgrel=0 pkgdesc="quicksign local apk repos" url="https://git.ddd.rip/ptrcnull/ptrcports" arch="noarch" license="ISC" -depends="abuild apk-tools s6" +depends="abuild apk-tools" source="qsign qsign.conf" options="!check" # ??????????????????????????????????????????? @@ -17,6 +17,6 @@ package() { } sha512sums=" -4382fa690d1368f42514f4a519e94187bc91b4988817ed071d13e9723d73b629cee98e70637c469a58adc674f0b1cce0f0c09c7c04383ea333993e5b22990bd7 qsign +50bc6b9768c237109f7fae04e5c86c64c8ed414adb37c6ee5467827b9dbc95a8ead6a9db40607c4434dd9317df300becae166ee51a66a727a03d249141cd856a qsign c6791d0a4d74acfa81b74f4129b31e008fd409be0e2dad4fb2c04187385666a47d475d4795fe20dbc5afcc5b4e2a35462bd43fb5fac006e03bafad93de4f65bc qsign.conf " diff --git a/qsign/qsign b/qsign/qsign index 65fa67e..e452f63 100755 --- a/qsign/qsign +++ b/qsign/qsign @@ -9,11 +9,11 @@ arch="$(apk --print-arch)" for repo in $repos; do cd "$REPODEST/$repo/$arch" || continue - s6-setlock /dev/shm/qsign-lock-$repo sh -c " + flock /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 - " + " || echo failed. done