mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-10-02 17:02:17 +00:00
cdb9360c53
buildsources_genesis_base() lived in buildrpms.pl, which runs mkdir, git and file writes at file scope and cannot be loaded. Its test therefore extracted the sub with a regex and evaluated a copy of the source. Move the staging into XCAT::BuildUtils as stage_genesis_base_sources(), which takes the checkout, the tarball path and SOURCE_DATE_EPOCH. buildsources_genesis_base() now calls it. The tarball content and the failure on a missing xCAT-genesis-base directory do not change. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>