galileo: Check for errors after downloading newlib tarball
Repeat the file existence and MD5 checks in build_newlib.sh after the newlib tarball is downloaded and exit if either of the checks fail.
This commit is contained in:
parent
96e50ec2c4
commit
c8cdc0c157
|
@ -16,6 +16,10 @@ prepare() {
|
|||
if [ ! -e ./${TARBALL} ] || [ "$(md5sum ./${TARBALL} | cut -d' ' -f1)" != $MD5 ]; then
|
||||
wget -c ftp://sources.redhat.com/pub/newlib/${TARBALL}
|
||||
fi
|
||||
if [ ! -e ./${TARBALL} ] || [ "$(md5sum ./${TARBALL} | cut -d' ' -f1)" != $MD5 ]; then
|
||||
echo "Error obtaining tarball."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Clean up the previous source dir, if any.
|
||||
if [[ -d ./newlib-${VERSION} ]]; then
|
||||
|
|
Loading…
Reference in a new issue