]> 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>
Mon, 14 May 2018 13:08:56 +0000 (14:08 +0100)
commit449564783dfb162536a2f772b3a8704973221e0f
treea131482c358b42c64e7b7b559f977d6c1f6bae45
parent5f64946b8740a5d944f48ec430470265703bfe5e
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.

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