diff options
author | Yi Zhao <yi.zhao@windriver.com> | 2013-07-24 10:00:38 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-07-29 13:09:04 +0100 |
commit | 7c1cb16081c022ff9c2fe72ec19341a90b107d22 (patch) | |
tree | 3a2ad46ad618742b180882ad6fc3273e89840be0 | |
parent | cb68f650c828ff0f2690931812cd8331a0dbc47f (diff) | |
download | poky-7c1cb16081c022ff9c2fe72ec19341a90b107d22.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]
(From OE-Core rev: d53c9e6942a65f2ae5eb8f33012453c356fd6ff4)
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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 f14f485285..af1d61c0ce 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` | |||
128 | WGET=`which wget` | 128 | WGET=`which wget` |
129 | if [ ! -z ${CURL} ] | 129 | if [ ! -z ${CURL} ] |
130 | then | 130 | then |
131 | DOWNLOAD_CMD="${CURL} -R -L --retry 3 --retry-delay 4 --connect-timeout 180 --compressed -C - -o" | 131 | DOWNLOAD_CMD="${CURL} -R -L -f --retry 3 --retry-delay 4 --connect-timeout 180 --compressed -C - -o" |
132 | elif [ ! -z ${WGET} ] | 132 | elif [ ! -z ${WGET} ] |
133 | then | 133 | then |
134 | DOWNLOAD_CMD="${WGET} -c -t 5 -O" | 134 | DOWNLOAD_CMD="${WGET} -c -t 5 -O" |