From: Cristian Iorga Date: Thu, 25 Oct 2012 15:37:30 +0000 (+0300) Subject: bitbake: bitbake: hob/builder: Hob crashes because of bad init X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=59943ca967d9a759df43eeaae7cebde26047bf91;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git bitbake: bitbake: hob/builder: Hob crashes because of bad init Image selection is not properly initialized to none, and it used before having a chance to have a value. Due to dynamic nature of Python, variable is used before it exists, in this case. This causes a crash. Bug introduced during the fix of [YOCTO #3228] Fixes [YOCTO #3334] (Bitbake rev: 1c540541c5397c38dca880a79df9ebfcda576d4c) Signed-off-by: Cristian Iorga Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/bb/ui/crumbs/builder.py b/bitbake/lib/bb/ui/crumbs/builder.py index 2fc4a2986f2..3c3d303cf6f 100755 --- a/bitbake/lib/bb/ui/crumbs/builder.py +++ b/bitbake/lib/bb/ui/crumbs/builder.py @@ -89,6 +89,7 @@ class Configuration: def __init__(self): self.curr_mach = "" + self.selected_image = None # settings self.curr_distro = "" self.dldir = self.sstatedir = self.sstatemirror = ""