]> code.ossystems Code Review - openembedded-core.git/commit
devtool: sdk-update: fix traceback without update server set
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Tue, 22 Dec 2015 03:19:18 +0000 (16:19 +1300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 22 Dec 2015 16:44:02 +0000 (16:44 +0000)
commit9763c1b83362f8445ed6dff2804dd7d282861f79
tree51e59d9a4999463ddedd35096be755208bfdfcb3
parent34bb63e6c72fb862e0ef0d2b26e1bfddaf7ddb99
devtool: sdk-update: fix traceback without update server set

If the SDK update server hasn't been set in the config (when building
the extensible SDK this would be set via SDK_UPDATE_URL) and it wasn't
specified on the command line then we were failing with a traceback
because we didn't pass the default value properly - None is interpreted
as no default, meaning raise an exception if no such option exists.

Additionally we don't need the try...except anymore either because with
a proper default value, NoSectionError is caught as well.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/devtool/sdk.py