Repository navigation
Refresh the signing keyrings only when a newer version is out - #15034
Conversation
Every update reinstalled archlinux-keyring, rerunning its pacman-key populate, though new and revoked keys only reach the repositories as a new package version. --needed keeps the refresh and drops the repeat. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Intentional tradeoff looks sound for day-to-day updates: One thing to confirm with maintainers: Arch has occasionally shipped keyring content updates that relied on reinstall-without-version-bump in the past. The PR asserts rotations always bump the package version — if that's the current Arch policy, this is ready; if not, Tests/docs updated cleanly. Not blocking from my side if that package-version assumption holds. |
* Refresh the signing keyrings only when a newer version is out Every update reinstalled archlinux-keyring, rerunning its pacman-key populate, though new and revoked keys only reach the repositories as a new package version. --needed keeps the refresh and drops the repeat. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Read the keyring test's stderr to EOF before checking it Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> (cherry picked from commit 15d9544) Backport note: v4-0-5 refreshes only archlinux-keyring (no platform keyrings from #14431), so only the --needed change applies here.
What
omarchy-update-keyringnow runspacman -Sy --needed --noconfirm archlinux-keyring …instead of reinstalling the keyring(s) on every update. The stderr filter that hid pacman'sis up to date -- reinstallingwarning now hides the--neededequivalent,is up to date -- skipping.Why
Every
omarchy updatereinstalledarchlinux-keyring(andarchlinuxarm-keyring/ platform keyrings), which reruns the package'spacman-key --populate+ trust updates./var/log/pacman.logon a current machine shows it on every update:About 2s per update, more on slower machines (gpg trust-db work).
The old comment said the keyring "can be updated without a package version bump". That isn't how the Arch repos work: a sync database entry is keyed by version, so new or revoked keys can only reach a machine as a new
pkgver/pkgrel, which--neededstill installs. The installed version was already populated when it was installed, so reinstalling it again only repeats that populate.Unchanged: the keyring step still syncs (
-Sy) so it sees the newest keyring before the main transaction, andomarchy-update-system-pkgsstill does the full-Syustraight after, so this doesn't add a partial-upgrade window. That second sync is left alone: the databases are fresh by then, so it costs well under a second, and dropping-ythere would only make the main transaction depend on this step having synced.Verification
test/shell.d/update-keyring-test.shnow expects--neededfor Arch, Arch Linux ARM and platform keyrings, and checks that only the up-to-date notice is filtered while other warnings still reach stderr../test/clipasses.🤖 Generated with Claude Code