]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake: bitbake: hob/builder: Hob crashes because of bad init
authorCristian Iorga <cristian.iorga@intel.com>
Thu, 25 Oct 2012 15:37:30 +0000 (18:37 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 25 Oct 2012 16:50:19 +0000 (17:50 +0100)
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 <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/ui/crumbs/builder.py

index 2fc4a2986f20a1cada944a861ff3065237a46386..3c3d303cf6f61f7abba65d59f56337a30533dc0c 100755 (executable)
@@ -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 = ""