From 27eadcfb6369412ae1e15d1e8434fbe80dec3e70 Mon Sep 17 00:00:00 2001 From: Pavel Isaev Date: Fri, 6 Nov 2026 14:41:27 +0300 Subject: [PATCH] Require policy comparison tools before Flatpak sideload import --- FLATPAK-OFFLINE.md | 5 +++++ adapters/prepare-flatpak-seed.sh | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/FLATPAK-OFFLINE.md b/FLATPAK-OFFLINE.md index 2cc436d..cd0439c 100644 --- a/FLATPAK-OFFLINE.md +++ b/FLATPAK-OFFLINE.md @@ -9,6 +9,11 @@ The persistent Flatpak cache is refreshed each build, with a verified matching previous export available on refresh failure. See infrastructure's `deploy/RELEASE-CYCLE.md` for the bounded operational policy. +The isolated preparer explicitly installs `diffutils` and requires `cmp` before +checking the cached policy. Without that dependency the conditional comparison +could silently skip sideload import and redownload runtimes. The dependency is +required even though the host already has comparison tools. + `enabled: false` in the seed policy disables the legacy online first-login seeder; `delivery: installation-media` identifies the installer-owned application set. diff --git a/adapters/prepare-flatpak-seed.sh b/adapters/prepare-flatpak-seed.sh index a3ac648..88f0faa 100644 --- a/adapters/prepare-flatpak-seed.sh +++ b/adapters/prepare-flatpak-seed.sh @@ -6,7 +6,8 @@ test "$(id -u)" = 0 test -f /run/archipelago-flatpak-seed-builder mkdir -p /seed/evidence exec > >(tee -a /seed/evidence/prepare.log) 2>&1 -pacman -S --needed --noconfirm flatpak python +pacman -S --needed --noconfirm flatpak python diffutils +command -v cmp >/dev/null date --utc --iso-8601=seconds > /seed/evidence/started pacman -Q > /seed/evidence/builder-packages.txt if [[ -f /cached-seed/flathub.flatpakrepo ]]; then