From 39a7eac13d125904c6a3549928f0d67f9897ee95 Mon Sep 17 00:00:00 2001 From: psykose Date: Sat, 22 Apr 2023 11:47:10 +0000 Subject: [PATCH] qsign: fallback err --- qsign/APKBUILD | 4 ++-- qsign/qsign | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/qsign/APKBUILD b/qsign/APKBUILD index 1a930fe..e0b0297 100644 --- a/qsign/APKBUILD +++ b/qsign/APKBUILD @@ -1,7 +1,7 @@ # Contributor: psykose # Maintainer: psykose pkgname=qsign -pkgver=8 +pkgver=9 pkgrel=0 pkgdesc="quicksign local apk repos" url="https://git.ddd.rip/ptrcnull/ptrcports" @@ -17,6 +17,6 @@ package() { } sha512sums=" -0a63de15189fca63cd6841b999d70f88248845e16d233e0a82626e51144c52895da035587d97bb8dfef8111369786dbacb838e78c8438582836be48acd2e70d7 qsign +4382fa690d1368f42514f4a519e94187bc91b4988817ed071d13e9723d73b629cee98e70637c469a58adc674f0b1cce0f0c09c7c04383ea333993e5b22990bd7 qsign c6791d0a4d74acfa81b74f4129b31e008fd409be0e2dad4fb2c04187385666a47d475d4795fe20dbc5afcc5b4e2a35462bd43fb5fac006e03bafad93de4f65bc qsign.conf " diff --git a/qsign/qsign b/qsign/qsign index 37a346f..65fa67e 100755 --- a/qsign/qsign +++ b/qsign/qsign @@ -10,7 +10,10 @@ arch="$(apk --print-arch)" 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 + 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