mirror of
https://git.yoctoproject.org/poky
synced 2026-09-20 03:49:32 +02:00
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 <cristian.iorga@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
4d7b2d2944
commit
59943ca967
@@ -89,6 +89,7 @@ class Configuration:
|
|||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.curr_mach = ""
|
self.curr_mach = ""
|
||||||
|
self.selected_image = None
|
||||||
# settings
|
# settings
|
||||||
self.curr_distro = ""
|
self.curr_distro = ""
|
||||||
self.dldir = self.sstatedir = self.sstatemirror = ""
|
self.dldir = self.sstatedir = self.sstatemirror = ""
|
||||||
|
|||||||
Reference in New Issue
Block a user