diff mbox

[7/8,v4] support/download: restore mandatory check of hashes

Message ID f792146f35a5019f70f0656a5fa448d7ff9778fc.1428512075.git.yann.morin.1998@free.fr
State Changes Requested
Headers show

Commit Message

Yann E. MORIN April 8, 2015, 4:57 p.m. UTC
Now that custom external toolchains to be downloaded proprely instruct
to not fail on a missing hash, restore the mandatory hash check for
everything else.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Gustavo Zacarias <gustavo@zacarias.com.ar>
Cc: Arnout Vandecappelle <arnout@mind.be>
---
 support/download/check-hash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Arnout Vandecappelle April 13, 2015, 11:46 p.m. UTC | #1
On 08/04/15 18:57, Yann E. MORIN wrote:
> Now that custom external toolchains to be downloaded proprely instruct
                                                       properly

> to not fail on a missing hash, restore the mandatory hash check for
> everything else.
> 
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> Cc: Gustavo Zacarias <gustavo@zacarias.com.ar>
> Cc: Arnout Vandecappelle <arnout@mind.be>

Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>


 Regards,
 Arnout

> ---
>  support/download/check-hash | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/support/download/check-hash b/support/download/check-hash
> index ca81f00..96f5965 100755
> --- a/support/download/check-hash
> +++ b/support/download/check-hash
> @@ -105,5 +105,5 @@ if [ ${nb_checks} -eq 0 ]; then
>          fi
>      done
>      printf "ERROR: No hash found for %s\n" "${base}" >&2
> -    exit 0
> +    exit 3
>  fi
>
diff mbox

Patch

diff --git a/support/download/check-hash b/support/download/check-hash
index ca81f00..96f5965 100755
--- a/support/download/check-hash
+++ b/support/download/check-hash
@@ -105,5 +105,5 @@  if [ ${nb_checks} -eq 0 ]; then
         fi
     done
     printf "ERROR: No hash found for %s\n" "${base}" >&2
-    exit 0
+    exit 3
 fi