|
|
@ -112,7 +112,7 @@ if ! [ -f ${SOURCE} ]; then
|
|
|
|
if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi
|
|
|
|
if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi
|
|
|
|
if ! [ "x${SRCURL}" == "x" ]; then
|
|
|
|
if ! [ "x${SRCURL}" == "x" ]; then
|
|
|
|
echo "Will download file to $(dirname $SOURCE)"
|
|
|
|
echo "Will download file to $(dirname $SOURCE)"
|
|
|
|
wget -nv -T 20 -O "${SOURCE}" "${SRCURL}"
|
|
|
|
wget -T 20 -O "${SOURCE}" "${SRCURL}"
|
|
|
|
if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then
|
|
|
|
if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then
|
|
|
|
echo "Downloading '$(basename ${SOURCE})' failed... aborting the build."
|
|
|
|
echo "Downloading '$(basename ${SOURCE})' failed... aborting the build."
|
|
|
|
mv -f "${SOURCE}" "${SOURCE}".FAIL
|
|
|
|
mv -f "${SOURCE}" "${SOURCE}".FAIL
|
|
|
|