summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorCristian Iorga <cristian.iorga@intel.com>2012-10-25 18:37:30 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-10-25 17:50:19 +0100
commit59943ca967d9a759df43eeaae7cebde26047bf91 (patch)
treea593d32fe88803121fa9b5b4258b8be51466d9ff /bitbake
parent4d7b2d2944933c4f03e80adfc32b626abee609a1 (diff)
downloadpoky-59943ca967d9a759df43eeaae7cebde26047bf91.tar.gz
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>
Diffstat (limited to 'bitbake')
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/builder.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/builder.py b/bitbake/lib/bb/ui/crumbs/builder.py
index 2fc4a2986f..3c3d303cf6 100755
--- a/bitbake/lib/bb/ui/crumbs/builder.py
+++ b/bitbake/lib/bb/ui/crumbs/builder.py
@@ -89,6 +89,7 @@ class Configuration:
89 89
90 def __init__(self): 90 def __init__(self):
91 self.curr_mach = "" 91 self.curr_mach = ""
92 self.selected_image = None
92 # settings 93 # settings
93 self.curr_distro = "" 94 self.curr_distro = ""
94 self.dldir = self.sstatedir = self.sstatemirror = "" 95 self.dldir = self.sstatedir = self.sstatemirror = ""