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:
Michael LeMay 2015-07-10 13:41:24 -07:00 committed by Jesus Sanchez-Palencia
parent 96e50ec2c4
commit c8cdc0c157

View File

@ -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