[Buildroot] [git commit] support/download: warn when there's no .hash file

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Fri Apr 3 12:08:54 UTC 2015


commit: http://git.buildroot.net/buildroot/commit/?id=b6b833e7bc7742e64cdde599c341bff787a888d4
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Instead of silently accepting a missing .hash file, print a warning.

This can be grepped from a build log, to find packages that still have
no hash, with the long-term goal of adding hashes for all packages.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
Reviewed-by: Samuel Martin <s.martin49 at gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
---
 support/download/check-hash |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/support/download/check-hash b/support/download/check-hash
index 13a76b8..3483077 100755
--- a/support/download/check-hash
+++ b/support/download/check-hash
@@ -33,6 +33,7 @@ base="${3}"
 
 # Does the hash-file exist?
 if [ -z "${h_file}" -o ! -f "${h_file}" ]; then
+    printf "WARNING: no hash file for %s\n" "${base}" >&2
     exit 0
 fi
 


More information about the buildroot mailing list