mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
support/download: warn when there's no .hash file
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@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Reviewed-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
3275315432
commit
b6b833e7bc
@ -33,6 +33,7 @@ base="${3}"
|
|||||||
|
|
||||||
# Does the hash-file exist?
|
# Does the hash-file exist?
|
||||||
if [ -z "${h_file}" -o ! -f "${h_file}" ]; then
|
if [ -z "${h_file}" -o ! -f "${h_file}" ]; then
|
||||||
|
printf "WARNING: no hash file for %s\n" "${base}" >&2
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user