]> code.ossystems Code Review - openembedded-core.git/commit
devtool/sdk.py: error out in case of downloading file failure
authorChen Qi <Qi.Chen@windriver.com>
Mon, 14 May 2018 08:35:22 +0000 (16:35 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 15 Aug 2018 11:27:02 +0000 (12:27 +0100)
commit61a56f6c5db9a3575a21f0c206f0fa760cf005e0
treebf7041b0e0027cf19a394908ff8ca0da01da331d
parent2a4595f0c45a9c0ecdeb1d92613821321e48a1ae
devtool/sdk.py: error out in case of downloading file failure

It's possible that downloading file from updateserver fails. In
this case, we should error out instead of continue.

We have users reporting unexpected behavior of 'devtool sdk-update'.
When an invalid url is supplied, e.g., `devtool sdk-update http://invalid',
the program reports 'Note: Already up-to-date'.

This is obviously not expected. We should error out in such case.

(From OE-Core rev: 449564783dfb162536a2f772b3a8704973221e0f)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
scripts/lib/devtool/sdk.py