summaryrefslogtreecommitdiffstats
path: root/scripts/lib/devtool
diff options
context:
space:
mode:
authorJuro Bystricky <juro.bystricky@intel.com>2016-03-02 11:23:24 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-03 10:49:00 +0000
commit14dd07caac25f252986ad1dda264abee313568dd (patch)
tree56375f7cd4ec33722463cd6328a603f019689344 /scripts/lib/devtool
parentc12e91953433c266bec894b8030c2f7049e2359d (diff)
downloadpoky-14dd07caac25f252986ad1dda264abee313568dd.tar.gz
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] (From OE-Core rev: 6ac589a4a9290665f8c5295e2e2a03a2b187b957) Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/devtool')
-rw-r--r--scripts/lib/devtool/sdk.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/lib/devtool/sdk.py b/scripts/lib/devtool/sdk.py
index fbf2e792e8..22c52799e2 100644
--- a/scripts/lib/devtool/sdk.py
+++ b/scripts/lib/devtool/sdk.py
@@ -133,6 +133,7 @@ def sdk_update(args, config, basepath, workspace):
133 logger.debug("Found conf/locked-sigs.inc in %s" % updateserver) 133 logger.debug("Found conf/locked-sigs.inc in %s" % updateserver)
134 update_dict = generate_update_dict(new_locked_sig_file_path, old_locked_sig_file_path) 134 update_dict = generate_update_dict(new_locked_sig_file_path, old_locked_sig_file_path)
135 logger.debug("update_dict = %s" % update_dict) 135 logger.debug("update_dict = %s" % update_dict)
136 newsdk_path = updateserver
136 sstate_dir = os.path.join(newsdk_path, 'sstate-cache') 137 sstate_dir = os.path.join(newsdk_path, 'sstate-cache')
137 if not os.path.exists(sstate_dir): 138 if not os.path.exists(sstate_dir):
138 logger.error("sstate-cache directory not found under %s" % newsdk_path) 139 logger.error("sstate-cache directory not found under %s" % newsdk_path)