summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/toasterui.py
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2013-11-01 15:58:28 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-11-04 10:52:59 +0000
commit1e6e27d98d04301bcef4c9f6b71720007dbf9fab (patch)
treefc102dc3d6152d4eead02a6f2fbfd1d5d7bc04dc /bitbake/lib/bb/ui/toasterui.py
parent73293c64815f15fd671ebbfca9bea1b8df0d7f46 (diff)
downloadpoky-1e6e27d98d04301bcef4c9f6b71720007dbf9fab.tar.gz
bitbake: toaster: fixes for null values from events
Some of the data values may come of as None through the event system, and the UI would encounter a problem saving the Configuration. It would be trying to save these values as NULL in the database, which is not allowed. This patch adds more verification for data coming through the event system. Other minor updates: * update for the event model from toaster.bbclass * minor code flow fix in the event system (Bitbake rev: 03fafd086381723c6486522873671515824e49f2) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/toasterui.py')
-rw-r--r--bitbake/lib/bb/ui/toasterui.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/toasterui.py b/bitbake/lib/bb/ui/toasterui.py
index ab87092e63..6c5b1529df 100644
--- a/bitbake/lib/bb/ui/toasterui.py
+++ b/bitbake/lib/bb/ui/toasterui.py
@@ -140,6 +140,7 @@ def main(server, eventHandler, params ):
140 logfile = event.logfile 140 logfile = event.logfile
141 if logfile and os.path.exists(logfile): 141 if logfile and os.path.exists(logfile):
142 bb.error("Logfile of failure stored in: %s" % logfile) 142 bb.error("Logfile of failure stored in: %s" % logfile)
143 continue
143 144
144 # these events are unprocessed now, but may be used in the future to log 145 # these events are unprocessed now, but may be used in the future to log
145 # timing and error informations from the parsing phase in Toaster 146 # timing and error informations from the parsing phase in Toaster
@@ -230,8 +231,6 @@ def main(server, eventHandler, params ):
230 if isinstance(event, bb.event.MetadataEvent): 231 if isinstance(event, bb.event.MetadataEvent):
231 if event.type == "SinglePackageInfo": 232 if event.type == "SinglePackageInfo":
232 buildinfohelper.store_build_package_information(event) 233 buildinfohelper.store_build_package_information(event)
233 elif event.type == "PackageFileSize":
234 buildinfohelper.store_package_file_information(event)
235 continue 234 continue
236 235
237 # ignore 236 # ignore