From 8d808bea0322d577696ee592843392c82b0f50d3 Mon Sep 17 00:00:00 2001 From: vpeter4 Date: Thu, 31 Jan 2013 13:27:25 +0100 Subject: [PATCH] autoupdate: checking download success --- packages/tools/autoupdate/scripts/autoupdate.devel | 1 + packages/tools/autoupdate/scripts/autoupdate.release | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/tools/autoupdate/scripts/autoupdate.devel b/packages/tools/autoupdate/scripts/autoupdate.devel index b786df98c0..5c49d7ab47 100755 --- a/packages/tools/autoupdate/scripts/autoupdate.devel +++ b/packages/tools/autoupdate/scripts/autoupdate.devel @@ -46,6 +46,7 @@ download () { wget -U "$THIS_DISTRIBUTION ($THIS_ARCH): $THIS_VERSION" \ -c ${1}?sysid=$SYSTEMID \ -O $2 > /dev/null 2>&1 + [ $? -ne 0 ] && exit 1 ;; scp) scp $SCP_ARG "$1" $TMP_DIR diff --git a/packages/tools/autoupdate/scripts/autoupdate.release b/packages/tools/autoupdate/scripts/autoupdate.release index a122750dc7..8cb107599d 100755 --- a/packages/tools/autoupdate/scripts/autoupdate.release +++ b/packages/tools/autoupdate/scripts/autoupdate.release @@ -46,6 +46,7 @@ download () { wget -U "$THIS_DISTRIBUTION ($THIS_ARCH): $THIS_VERSION" \ -c ${1}?sysid=$SYSTEMID \ -O $2 > /dev/null 2>&1 + [ $? -ne 0 ] && exit 1 ;; scp) scp $SCP_ARG "$1" $TMP_DIR