Skip to content

Commit 1c7c687

Browse files
committed
core/download: properly honor BR_NO_CHECK_HASH_FOR when there's a hash
Before, if there was a hash for the affected file, it was checked even if the package was in BR_NO_CHECK_HASH_FOR. This caused build failures on gstreamer1 packages when BR2_PACKAGE_GSTREAMER1_GIT=y, because the tarball was downloaded from an alternative source (git tarball), the hash was different from the one in the official release, and the hash check against the official hash failed.
1 parent 2bd530e commit 1c7c687

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

support/download/check-hash

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ if [ ! -f "${h_file}" ]; then
4141
exit 0
4242
fi
4343

44+
case " ${BR_NO_CHECK_HASH_FOR} " in
45+
*" ${base} "*)
46+
# File explicitly has no hash
47+
exit 0
48+
;;
49+
esac
50+
4451
# Check one hash for a file
4552
# $1: known hash
4653
# $2: file (full path)

0 commit comments

Comments
 (0)