From e57b74c46fccdae5c1416b91152307d52e96a97f Mon Sep 17 00:00:00 2001 From: Kevin Adams Date: Sat, 6 Jun 2026 14:48:05 -0400 Subject: [PATCH] fix: run full apt update in migration script to avoid false failure The limited-scope apt-get update didn't flush the full apt cache, causing apt-cache policy to miss the new GitHub Pages source on nodes that had a beta build installed from the testing channel (pve02-hq: 3.0.0~beta). Full apt update ensures the cache is consistent before the verification check. Co-Authored-By: Claude Sonnet 4.6 --- scripts/migrate-repo-to-github-pages.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/migrate-repo-to-github-pages.sh b/scripts/migrate-repo-to-github-pages.sh index c33dde9..1f5b0e9 100644 --- a/scripts/migrate-repo-to-github-pages.sh +++ b/scripts/migrate-repo-to-github-pages.sh @@ -117,9 +117,7 @@ cat "$SOURCES_FILE" # ── apt update ─────────────────────────────────────────────────────────────── echo "" echo "==> Running apt update..." -apt-get update -o Dir::Etc::sourcelist="$SOURCES_FILE" \ - -o Dir::Etc::sourceparts="-" \ - -o APT::Get::List-Cleanup="0" 2>&1 \ +apt-get update 2>&1 \ | grep -E "^(Get|Hit|Err|Fetched|W:|E:)" || true # Confirm the package is visible from the new repo