Skip to contentSkip to conversation

support/download: quick fix to avoid breaking on custom toolchains

PATCH New Yann E. MORIN 2 participants 2 messages Apr 3, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 support/download: quick fix to avoid breaking on custom toolchains

When the user selects a custom toolchain to be downloaded, there's no hash for that toolchain, so the download fails, now that hashes are mandatory.

Fix that by simply exiting as if there was no error, until we have a better fix...

Cc Thomas Petazzoni <[email protected]>
Cc Gustavo Zacarias <[email protected]>
---
 support/download/check-hash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
support/download/check-hash +1 -1
index 3483077..67c1780 100755
@@ -96,5 +96,5 @@ done <"${h_file}"
 
 if [ ${nb_checks} -eq 0 ]; then
     printf "ERROR: No hash found for %s\n" "${base}" >&2
-    exit 3
+    exit 0
 fi
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 support/download: quick fix to avoid breaking on custom toolchains

Dear Yann E. MORIN,

Quoted 7 lines · Yann E. MORIN

When the user selects a custom toolchain to be downloaded, there's no hash for that toolchain, so the download fails, now that hashes are mandatory.

Fix that by simply exiting as if there was no error, until we have a better fix...

Quoted 6 lines
Cc Thomas Petazzoni <[email protected]>
Cc Gustavo Zacarias <[email protected]>
---
 support/download/check-hash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com