summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-05-30 17:17:15 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-21 11:35:20 +0100
commit78d15a8015bcc73ee7731cc7fc7ee086d2728139 (patch)
treedf9c89cce8c3ec31e659c46bc931cecc31361255 /bitbake
parentffff5fa2d7cf9c7af6475725ac3e71ffd4e4bfba (diff)
downloadpoky-78d15a8015bcc73ee7731cc7fc7ee086d2728139.tar.gz
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) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/cooker.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 4a4dc385a3..4016f3b0d4 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -1644,6 +1644,8 @@ class CookerParser(object):
1644 yield result 1644 yield result
1645 1645
1646 def parse_next(self): 1646 def parse_next(self):
1647 result = []
1648 parsed = None
1647 try: 1649 try:
1648 parsed, result = self.results.next() 1650 parsed, result = self.results.next()
1649 except StopIteration: 1651 except StopIteration: