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
1 changed files with 4 additions and 0 deletions
|
@ -16,6 +16,10 @@ prepare() {
|
||||||
if [ ! -e ./${TARBALL} ] || [ "$(md5sum ./${TARBALL} | cut -d' ' -f1)" != $MD5 ]; then
|
if [ ! -e ./${TARBALL} ] || [ "$(md5sum ./${TARBALL} | cut -d' ' -f1)" != $MD5 ]; then
|
||||||
wget -c ftp://sources.redhat.com/pub/newlib/${TARBALL}
|
wget -c ftp://sources.redhat.com/pub/newlib/${TARBALL}
|
||||||
fi
|
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.
|
# Clean up the previous source dir, if any.
|
||||||
if [[ -d ./newlib-${VERSION} ]]; then
|
if [[ -d ./newlib-${VERSION} ]]; then
|
||||||
|
|
Loading…
Reference in a new issue