diff options
author | Alex Gonzalez <alex@lindusembedded.com> | 2012-12-04 11:22:25 +0100 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2012-12-04 09:08:37 -0200 |
commit | 3f492de880563802eb44e16feb7180dfd057ab77 (patch) | |
tree | 8e5a1e5da73776916e8e2080a1287d53cbe691bc /classes/fsl-eula-unpack.bbclass | |
parent | 42b230b8c45daa958829672ab346e5aef53fa1dd (diff) | |
download | meta-fsl-arm-3f492de880563802eb44e16feb7180dfd057ab77.tar.gz |
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>
Diffstat (limited to 'classes/fsl-eula-unpack.bbclass')
-rw-r--r-- | classes/fsl-eula-unpack.bbclass | 1 |
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() { | |||
18 | fetcher = bb.fetch2.Fetch(src_uri, localdata) | 18 | fetcher = bb.fetch2.Fetch(src_uri, localdata) |
19 | 19 | ||
20 | for url in fetcher.ud.values(): | 20 | for url in fetcher.ud.values(): |
21 | save_cwd = os.getcwd() | ||
21 | # Check for supported fetchers | 22 | # Check for supported fetchers |
22 | if url.type in ['http', 'https', 'ftp', 'file']: | 23 | if url.type in ['http', 'https', 'ftp', 'file']: |
23 | if url.parm.get('fsl-eula', False): | 24 | if url.parm.get('fsl-eula', False): |