diff options
author | Cristian Iorga <cristian.iorga@intel.com> | 2012-10-25 18:37:30 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-10-25 17:46:56 +0100 |
commit | 1c540541c5397c38dca880a79df9ebfcda576d4c (patch) | |
tree | 8cde0587020fe8a59f419f73e60e4e1a11519d18 | |
parent | 00afd6a25c0cc0a4fcddd9f7c26a17ef6c47cbd2 (diff) | |
download | bitbake-1c540541c5397c38dca880a79df9ebfcda576d4c.tar.gz |
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]
Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | lib/bb/ui/crumbs/builder.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bb/ui/crumbs/builder.py b/lib/bb/ui/crumbs/builder.py index 2fc4a2986..3c3d303cf 100755 --- a/lib/bb/ui/crumbs/builder.py +++ b/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 = "" |