mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-09-04 20:17:55 +00:00
a5f670a4cc
Both builders wrote the same six fields beside a published repository -- VERSION, RELEASE, BUILD_TIME, BUILD_MACHINE, COMMIT_ID, COMMIT_ID_LONG -- each assembling them by hand, and each shelling out to hostname to do it. builddebs.pl also ran git rev-parse a second time to get the commit, although it had already derived the same value into $GITINFO earlier in the file. It now uses that. The filenames and the time formats stay as they were. deploy.sh copies builddebs.pl's buildinfo verbatim and cluster-test.pl parses buildrpms.pl's buildinfo.txt, so both are a contract with consumers outside this repository; the shared helper takes the format from its caller rather than picking one. Confirmed byte for byte that each builder's stamp is unchanged. Covered by tests: the field names and their order, the seven-character short commit, and that the two callers' formats still differ. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>