diff options
author | Yi Zhao <yi.zhao@windriver.com> | 2013-07-24 10:00:38 +0800 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2013-07-27 23:28:25 -0700 |
commit | d53c9e6942a65f2ae5eb8f33012453c356fd6ff4 (patch) | |
tree | 8d3a4a2605d21cb8376dd51e375e07435e015d6f /meta/recipes-extended/lsb | |
parent | c6a503f05505cd5d842ae1c1b558be04e233072c (diff) | |
download | openembedded-core-contrib-d53c9e6942a65f2ae5eb8f33012453c356fd6ff4.tar.gz |
LSB_Test.sh: add -f option for curl
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>
Diffstat (limited to 'meta/recipes-extended/lsb')
-rw-r--r-- | meta/recipes-extended/lsb/lsbtest/LSB_Test.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh b/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh index f14f4852855..af1d61c0ce6 100644 --- a/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh +++ b/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh @@ -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" |