]> code.ossystems Code Review - openembedded-core.git/commit
sdk.py: Fix undefined variable
authorJuro Bystricky <juro.bystricky@intel.com>
Wed, 2 Mar 2016 19:23:24 +0000 (11:23 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 3 Mar 2016 10:48:46 +0000 (10:48 +0000)
commit6ac589a4a9290665f8c5295e2e2a03a2b187b957
tree309b5716c36620932f8927183cd898d99deb319d
parentd32ed5dd1dcadf206162b823bcb2f539e0ff5ad3
sdk.py: Fix undefined variable

"sdk_update" uses a variable newsdk_path, which was never declared.
This would cause the command:

    devtool sdk-update <poky-sdk-latest>

to fail with an error:
NameError: global name 'newsdk_path' is not defined

The remedy is to declare newsdk_path as it was no doubt intended,
corresponding to the argument specifying <poky-sdk-latest>.

[YOCTO#9042]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/devtool/sdk.py