[RFC,2/2] support/download/check-hash: warn when an hash check is skipped

Message ID 20240824103634.1955431-2-dario.binacchi@amarulasolutions.com
State New
Headers show
Series
  • [RFC,1/2] package/pkg-download: set BR_NO_CHECK_HASH_FOR properly
Related show

Commit Message

Dario Binacchi Aug. 24, 2024, 10:36 a.m. UTC
This highlights that the hash check for a file has been intentionally
skipped.

Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
 support/download/check-hash | 1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/support/download/check-hash b/support/download/check-hash
index d18ec8b134e8..173df8fc6fa4 100755
--- a/support/download/check-hash
+++ b/support/download/check-hash
@@ -108,6 +108,7 @@  if [ ${nb_checks} -eq 0 ]; then
     case " ${BR_NO_CHECK_HASH_FOR} " in
     *" ${base} "*)
         # File explicitly has no hash
+        printf "WARNING: Skipping hash check for %s\n" "${base}" >&2
         exit 0
         ;;
     esac