* [denzil][PATCH 0/1] denzil fix for bitbake
@ 2012-08-10 16:13 Paul Eggleton
2012-08-10 16:13 ` [denzil][PATCH 1/1] cooker: fix UnboundLocalError when exception occurs during parsing Paul Eggleton
0 siblings, 1 reply; 3+ messages in thread
From: Paul Eggleton @ 2012-08-10 16:13 UTC (permalink / raw)
To: poky, Scott Garman
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(+)
--
1.7.9.5
^ permalink raw reply [flat|nested] 3+ messages in thread
* [denzil][PATCH 1/1] cooker: fix UnboundLocalError when exception occurs during parsing
2012-08-10 16:13 [denzil][PATCH 0/1] denzil fix for bitbake Paul Eggleton
@ 2012-08-10 16:13 ` Paul Eggleton
2012-08-10 20:24 ` McClintock Matthew-B29882
0 siblings, 1 reply; 3+ messages in thread
From: Paul Eggleton @ 2012-08-10 16:13 UTC (permalink / raw)
To: poky, Scott Garman
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>
---
bitbake/lib/bb/cooker.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 4a4dc38..4016f3b 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [denzil][PATCH 1/1] cooker: fix UnboundLocalError when exception occurs during parsing
2012-08-10 16:13 ` [denzil][PATCH 1/1] cooker: fix UnboundLocalError when exception occurs during parsing Paul Eggleton
@ 2012-08-10 20:24 ` McClintock Matthew-B29882
0 siblings, 0 replies; 3+ messages in thread
From: McClintock Matthew-B29882 @ 2012-08-10 20:24 UTC (permalink / raw)
To: Paul Eggleton; +Cc: poky@yoctoproject.org
I can confirm some users have seen this, I will try to get them to test it out.
-M
On Fri, Aug 10, 2012 at 11:13 AM, Paul Eggleton
<paul.eggleton@linux.intel.com> wrote:
> 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>
> ---
> bitbake/lib/bb/cooker.py | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
> index 4a4dc38..4016f3b 100644
> --- a/bitbake/lib/bb/cooker.py
> +++ b/bitbake/lib/bb/cooker.py
> @@ -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
> poky@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-08-10 20:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-10 16:13 [denzil][PATCH 0/1] denzil fix for bitbake Paul Eggleton
2012-08-10 16:13 ` [denzil][PATCH 1/1] cooker: fix UnboundLocalError when exception occurs during parsing Paul Eggleton
2012-08-10 20:24 ` McClintock Matthew-B29882
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.