Replace stale local package signatures

This commit is contained in:
David Heinemeier Hansson committed 2026-07-22 15:31:05 -07:00
1 parent 01a5203009
commit a27385483f
1 file changed
+9 -1
+9 -1
View File
@@ -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:"