From 4a5f80ddbf73cf314e9457afbcdba65ce391cda7 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Fri, 8 Nov 2024 14:14:20 +0100 Subject: [PATCH] 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 .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 --- tool/depot/mk/extract.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/depot/mk/extract.inc b/tool/depot/mk/extract.inc index e2390e0a89..192c9889c3 100644 --- a/tool/depot/mk/extract.inc +++ b/tool/depot/mk/extract.inc @@ -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;