Skip to contentSkip to conversation

fsl-eula-unpack: Avoid unbound local exception.

PATCH New [email protected] 3 participants 5 messages Dec 4, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fsl-eula-unpack: Avoid unbound local exception.

From: Alex Gonzalez <[email protected]>

I have verified the build with imx53qsb and fsl-image-gui on the denzil branch, and checked that firmware-imx is correctly compiled, packaged and installed. The master branch has some unrelated issues when building either fsl-image-gui or core-image-base at the moment.

Alex Gonzalez (1):
fsl-eula-unpack: Avoid unbound local exception.

 classes/fsl-eula-unpack.bbclass |    1 +
 1 file changed, 1 insertion(+)
#1 lore raw

PATCH 1/1 fsl-eula-unpack: Avoid unbound local exception.

From: Alex Gonzalez <[email protected]>

This commit fixes an unbound local exception caused by save_cwd not being defined when fsl-eula is not true.

---
 classes/fsl-eula-unpack.bbclass |    1 +
 1 file changed, 1 insertion(+)
classes/fsl-eula-unpack.bbclass +1 -0
index 7a6a554..6660a88 100644
@@ -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):
#2 lore raw
Quoted 5 lines · On 12/04/2012 08:22 AM, [email protected] wrote:

From: Alex Gonzalez <[email protected]>

This commit fixes an unbound local exception caused by save_cwd not being defined when fsl-eula is not true.
---

Thanks a lot for the patch.

Which board did you test?
(I will test for another one)

Daiane

Quoted 20 lines
  classes/fsl-eula-unpack.bbclass |    1 +
  1 file changed, 1 insertion(+)
classes/fsl-eula-unpack.bbclass +1 -0
index 7a6a554..6660a88 100644
@@ -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):

_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale

#3 lore raw

I tested on the imx53 QSB.
Alex

Quoted 42 lines · Daiane Angolini
Quoted 6 lines · On 12/04/2012 08:22 AM, [email protected] wrote:

From: Alex Gonzalez <[email protected]>

This commit fixes an unbound local exception caused by save_cwd not being defined when fsl-eula is not true.
---

Thanks a lot for the patch.

Which board did you test?
(I will test for another one)

Daiane

Quoted 16 lines
  classes/fsl-eula-unpack.bbclass |    1 +
  1 file changed, 1 insertion(+)
classes/fsl-eula-unpack.bbclass +1 -0
index 7a6a554..6660a88 100644
@@ -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):
Quoted 5 lines

_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale

_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale

#4 lore raw
In reply to [email protected]
Quoted 5 lines · On Tue, Dec 4, 2012 at 8:22 AM, <[email protected]> wrote:

From: Alex Gonzalez <[email protected]>

This commit fixes an unbound local exception caused by save_cwd not being defined when fsl-eula is not true.

Thanks by doing it.

I applied it to denzil and master branches.

An small detail, next time use '-s' when commiting so you include your signed-off-by line.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br