]> code.ossystems Code Review - meta-freescale.git/commitdiff
fsl-eula-unpack: Avoid unbound local exception.
authorAlex Gonzalez <alex@lindusembedded.com>
Tue, 4 Dec 2012 10:22:25 +0000 (11:22 +0100)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 4 Dec 2012 11:08:37 +0000 (09:08 -0200)
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>
meta-fsl-arm/classes/fsl-eula-unpack.bbclass

index 7a6a55472147db015cc6246c4b02982867207574..6660a88407a2acf7b7592dd03c8f9af16d0eabee 100644 (file)
@@ -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):