aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Gonzalez <alex@lindusembedded.com>2012-12-04 11:22:25 +0100
committerOtavio Salvador <otavio@ossystems.com.br>2012-12-04 09:08:16 -0200
commitdebea1a3c80227b33a3bbaa21c51435db1b3f5d7 (patch)
tree562d05e01a89819d041148b926b7c57bacf065a6
parentfd6a714c1831d3921ac58fad316b0375e19ef63f (diff)
downloadmeta-fsl-arm-debea1a3c80227b33a3bbaa21c51435db1b3f5d7.tar.gz
meta-fsl-arm-debea1a3c80227b33a3bbaa21c51435db1b3f5d7.tar.bz2
meta-fsl-arm-debea1a3c80227b33a3bbaa21c51435db1b3f5d7.zip
fsl-eula-unpack: Avoid unbound local exception.
This commit fixes an unbound local exception caused by save_cwd not being defined when fsl-eula is not true. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
-rw-r--r--classes/fsl-eula-unpack.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/classes/fsl-eula-unpack.bbclass b/classes/fsl-eula-unpack.bbclass
index 7a6a554..6660a88 100644
--- a/classes/fsl-eula-unpack.bbclass
+++ b/classes/fsl-eula-unpack.bbclass
@@ -18,6 +18,7 @@ python fsl_bin_do_unpack() {
fetcher = bb.fetch2.Fetch(src_uri, localdata)
for url in fetcher.ud.values():
+ save_cwd = os.getcwd()
# Check for supported fetchers
if url.type in ['http', 'https', 'ftp', 'file']:
if url.parm.get('fsl-eula', False):