From f1bc8dad085de97ea4ae501b48f7138da951d307 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 8 Jul 2026 18:16:16 -0700 Subject: [PATCH] Purge stale omarchy package cache before the first quattro transaction Legacy repos cached omarchy packages under the same name and version as quattro rebuilds with different bytes, so pacman aborted --noconfirm transactions with checksum errors. Co-Authored-By: Claude Fable 5 --- bin/omarchy-upgrade-to-quattro | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/omarchy-upgrade-to-quattro b/bin/omarchy-upgrade-to-quattro index bdaa8d85..be2b2432 100755 --- a/bin/omarchy-upgrade-to-quattro +++ b/bin/omarchy-upgrade-to-quattro @@ -386,6 +386,13 @@ configure_pacman_channel() { install_keyrings() { log "Refreshing package databases and keyrings" + + # Pre-quattro installs cached omarchy packages downloaded from the legacy + # repo. The quattro package server rebuilds some of them under the same + # name and version with different bytes, so the cached copies fail the new + # database's checksum and abort --noconfirm transactions as "corrupted". + as_root find /var/cache/pacman/pkg -maxdepth 1 -name 'omarchy-*' -delete 2>/dev/null || true + as_root pacman -Sy --noconfirm archlinux-keyring omarchy-keyring || { warn "Keyring package install failed; attempting to trust the Omarchy packaging key directly." as_root pacman-key --recv-keys 40DFB630FF42BCFFB047046CF0134EE680CAC571 --keyserver keys.openpgp.org || true