From dfba7efdac1a152e69fa013d5bdb16a9bfa642a4 Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Fri, 14 Aug 2026 14:27:25 +0000 Subject: [PATCH] Refresh native apt indexes before cross-build setup. --- .gitea/scripts/install-linux-build-dependencies.sh | 1 + crates/bds-ui/tests/packaging_assets.rs | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/.gitea/scripts/install-linux-build-dependencies.sh b/.gitea/scripts/install-linux-build-dependencies.sh index 6b1f77c..98e4b42 100644 --- a/.gitea/scripts/install-linux-build-dependencies.sh +++ b/.gitea/scripts/install-linux-build-dependencies.sh @@ -41,6 +41,7 @@ case "$target" in sudo sed -i \ '/^Architectures:/d; /^Types: deb$/a Architectures: arm64' \ "$native_sources" + sudo apt-get update # The full runner image includes these Architecture: all Python tools. # They are unrelated to the build, but make apt replace native Python diff --git a/crates/bds-ui/tests/packaging_assets.rs b/crates/bds-ui/tests/packaging_assets.rs index ff1bdf2..ad26c4f 100644 --- a/crates/bds-ui/tests/packaging_assets.rs +++ b/crates/bds-ui/tests/packaging_assets.rs @@ -214,6 +214,13 @@ fn tagged_releases_are_built_and_packaged_with_rust_tools() { let native_python = linux_dependencies .find("install_packages python3 python3-typing-extensions") .expect("native Python dependency setup"); + let native_source_filter = linux_dependencies + .find("'/^Architectures:/d; /^Types: deb$/a Architectures: arm64'") + .expect("native apt architecture filter"); + assert!( + linux_dependencies[native_source_filter..native_python].contains("sudo apt-get update"), + "native apt indexes must be refreshed after constraining the source architecture" + ); assert!( native_python < multiarch, "native Python dependencies must be fixed before enabling multiarch"