From a27385483fcc7891a81d0b976b25d0c44d2e86eb Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 22 Jul 2026 15:31:05 -0700 Subject: [PATCH] Replace stale local package signatures --- builder/build-omarchy-packages.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/builder/build-omarchy-packages.sh b/builder/build-omarchy-packages.sh index 4c9659c..3c34f85 100755 --- a/builder/build-omarchy-packages.sh +++ b/builder/build-omarchy-packages.sh @@ -63,7 +63,15 @@ for pkg in "${packages[@]}"; do done mkdir -p "$offline_mirror_dir" -mv "$work_dir"/*.pkg.tar.zst "$offline_mirror_dir/" +for package_file in "$work_dir"/*.pkg.tar.zst; do + destination="$offline_mirror_dir/$(basename "$package_file")" + + # A cached signature belongs to the previously downloaded or locally built + # package. Keeping it beside a newly built package makes pacman reject the + # otherwise valid local-source build. + rm -f "$destination" "$destination.sig" + mv "$package_file" "$destination" +done echo echo "Built Omarchy packages, placed in $offline_mirror_dir:"