From 6efb498409dc2e7b2420d83566ab59269b7947c6 Mon Sep 17 00:00:00 2001 From: Xavier Karma Date: Mon, 5 Oct 2026 07:02:24 +0530 Subject: [PATCH] Force re-indexing in build-xbps.sh so a rebuilt package replaces its old index entry xbps-rindex -a skips a package whose version is already indexed, so rebuilding the same version left the old checksum in the repository index and xbps-install rejected the new file with 'checksum does not match repository index'. --- packaging/void/build-xbps.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packaging/void/build-xbps.sh b/packaging/void/build-xbps.sh index fd94bd9..4156c0e 100755 --- a/packaging/void/build-xbps.sh +++ b/packaging/void/build-xbps.sh @@ -101,7 +101,9 @@ mkdir -p "$REPO" mv -f "$OUT"/${PKGVER}.*.xbps "$REPO/" echo "==> Indexing local repository" -xbps-rindex -a "$REPO"/*.xbps +# -f re-adds a package whose version is already indexed. Without it a rebuild of the +# same version keeps the old checksum in the index and xbps-install rejects the new file. +xbps-rindex -f -a "$REPO"/*.xbps echo echo "Package: $REPO/${PKGVER}.${ARCH}.xbps"