depot/extract: feed file names into version hash

Fixes #3178
This commit is contained in:
Norman Feske 2019-02-22 12:21:29 +01:00 committed by Christian Helmuth
parent d9043057a2
commit 1d0a1e7937
1 changed files with 7 additions and 1 deletions

View File

@ -193,8 +193,14 @@ _check_hash: $(DEPOT_ARCHIVE_DIR).hash checked_recipe_hash_value_exists
#
# The command is invoked from within the archive directory within the depot.
#
# The hash value depends on both the file names (the first 'find' command)
# found in the archive as well as the content of the files (the second 'find'
# command).
#
HASH_CMD := cd $(DEPOT_ARCHIVE_DIR); \
find . -type f | sort | xargs -d '\n' cat | $(HASHSUM) | sed "s/ .*//"
(find . -type f | sort; \
find . -type f | sort | xargs -d '\n' cat) \
| $(HASHSUM) | sed "s/ .*//"
#
# Generate the hash from the archive content