Skip to contentSkip to conversation

denzil fix for bitbake

PATCH In review Paul Eggleton 2 participants 3 messages Aug 10, 2012

lore
Share & tools
lore
#0 lore raw

cover denzil fix for bitbake

A single bitbake patch cherry-picked from master for denzil-next.

The following changes since commit 73cdebf60df225ee10f2eb215935be3b61e1b831:

documentation/dev-manual/dev-manual-kernel-appendix.xml: Add note about conflict (2012-06-29 15:54:26 +0100)

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib paule/denzil-fixes-bitbake
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=paule/denzil-fixes-bitbake

Paul Eggleton (1):
cooker: fix UnboundLocalError when exception occurs during parsing

 bitbake/lib/bb/cooker.py |    2 ++
 1 file changed, 2 insertions(+)
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 cooker: fix UnboundLocalError when exception occurs during parsing

Fix a recent regression where we see the following additional error after an error occurs during parsing:

ERROR: Command execution failed: Traceback (most recent call last):
File "/home/paul/poky/poky/bitbake/lib/bb/command.py", line 84, in runAsyncCommand
self.cooker.updateCache()
File "/home/paul/poky/poky/bitbake/lib/bb/cooker.py", line 1202, in updateCache
if not self.parser.parse_next():
File "/home/paul/poky/poky/bitbake/lib/bb/cooker.py", line 1672, in parse_next

    self.virtuals += len(result)

UnboundLocalError: local variable 'result' referenced before assignment

(Bitbake rev: 1ae0181ba49ccfcb2d889de5dd1d8912b9e49157)

---
 bitbake/lib/bb/cooker.py |    2 ++
 1 file changed, 2 insertions(+)
bitbake/lib/bb/cooker.py +2 -0
index 4a4dc38..4016f3b 100644
@@ -1644,6 +1644,8 @@ class CookerParser(object):
                     yield result
 
     def parse_next(self):
+        result = []
+        parsed = None
         try:
             parsed, result = self.results.next()
         except StopIteration:
Signature · 1 line
1.7.9.5
#2 lore raw

Re: [denzil][PATCH 1/1] cooker: fix UnboundLocalError when exception occurs during parsing

I can confirm some users have seen this, I will try to get them to test it out.

-M

Quoted 40 lines · Paul Eggleton

Fix a recent regression where we see the following additional error after an error occurs during parsing:

ERROR: Command execution failed: Traceback (most recent call last):
File "/home/paul/poky/poky/bitbake/lib/bb/command.py", line 84, in runAsyncCommand
self.cooker.updateCache()
File "/home/paul/poky/poky/bitbake/lib/bb/cooker.py", line 1202, in updateCache
if not self.parser.parse_next():
File "/home/paul/poky/poky/bitbake/lib/bb/cooker.py", line 1672, in parse_next

    self.virtuals += len(result)

UnboundLocalError: local variable 'result' referenced before assignment

(Bitbake rev: 1ae0181ba49ccfcb2d889de5dd1d8912b9e49157)

---
 bitbake/lib/bb/cooker.py |    2 ++
 1 file changed, 2 insertions(+)
bitbake/lib/bb/cooker.py +2 -1
index 4a4dc38..4016f3b 100644
@@ -1644,6 +1644,8 @@ class CookerParser(object):
                     yield result
 
     def parse_next(self):
+        result = []
+        parsed = None
         try:
             parsed, result = self.results.next()
         except StopIteration:
--

1.7.9.5

_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky