]> code.ossystems Code Review - openembedded-core.git/commitdiff
LSB_Test.sh: add -f option for curl
authorYi Zhao <yi.zhao@windriver.com>
Wed, 24 Jul 2013 02:00:38 +0000 (10:00 +0800)
committerSaul Wold <sgw@linux.intel.com>
Sun, 28 Jul 2013 06:28:25 +0000 (23:28 -0700)
In normal cases when a HTTP server fails to deliver a file, it returns
an HTML document to describe the reason (e.g. 404 Not Found). The curl
will output this page as a file and do not return error. Add a "-f"
option will prevent curl from outputting that and return error.

[YOCTO #4895]

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-extended/lsb/lsbtest/LSB_Test.sh

index f14f485285506eadaf8a0d4a2532bdcde2e52b72..af1d61c0ce63fb5025f7f5c36d20cd324a6956e8 100644 (file)
@@ -128,7 +128,7 @@ CURL=`which curl`
 WGET=`which wget`
 if [ ! -z ${CURL} ]
 then
-       DOWNLOAD_CMD="${CURL} -R -L --retry 3 --retry-delay 4 --connect-timeout 180 --compressed -C - -o"
+       DOWNLOAD_CMD="${CURL} -R -L -f --retry 3 --retry-delay 4 --connect-timeout 180 --compressed -C - -o"
 elif [ ! -z ${WGET} ]
 then
        DOWNLOAD_CMD="${WGET} -c -t 5 -O"