mirror of
https://github.com/xcat2/xcat-dep.git
synced 2026-12-03 23:57:03 +00:00
7944387b4bbcfe19a5cdb2dd6cb600dbf92c825b
The prior commit scoped the apt verify gate to '--arch floor UNION present arches', but detected presence with a non-empty binary-<arch>/Packages. That is wrong: every binary-<arch> index carries the Architecture:all debs (grub2-xcat, genesis), so a BUILD_PPC=false run has a non-empty binary-ppc64el index built purely from arch:all debs -- and the gate would still demand the native ppc compiled deps (ipmitool-xcat, conserver-xcat, goconserver) it never built, the exact false-fail the change was meant to remove. Detect a genuine per-arch build via a new pure helper index_has_native_arch(), which is true only when the index has a stanza with Architecture == that arch (not merely Architecture:all). Unit-tested happy + the arch:all-only sad case. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
Description
No description provided
Languages
Perl
79.3%
JavaScript
6.3%
C
3.9%
Shell
3.1%
SQLPL
2%
Other
5.2%