tool/depot/extract: annotate version with src hash

When extracting depot archives from the source tree, retain the content
hash of the extracted information along the archive in <version>.hash
file. The .hash files of src and api archives become thereby usable for
checking the consistency of bin archives with their ingredients.

Issue #5379
This commit is contained in:
Norman Feske 2024-11-08 14:14:20 +01:00 committed by Christian Helmuth
parent 7fb702a0d9
commit 4a5f80ddbf

View File

@ -131,7 +131,7 @@ _rename_to_final_archive: _check_hash
hint=" $(BRIGHT_COL)(new version)$(DEFAULT_COL)"; \
test $$hash = $(ORIG_RECIPE_HASH_VALUE) || \
$(VERSION_UPDATED_CMD); \
rm -f $(DEPOT_ARCHIVE_DIR).hash; \
mv $(DEPOT_ARCHIVE_DIR).hash $(DEPOT_SUB_DIR)/$$final_name.hash; \
$(ECHO) "$(DARK_COL)created$(DEFAULT_COL)" \
"$(USER)/$(notdir $(DEPOT_SUB_DIR))/$$final_name$$hint"; \
true;