generic-poky/bitbake/lib/bb
Ed Bartosh acb94078c4 bitbake: buildinfohelper: fix KeyError
When bitbake doesn't need to build anything it still sends
ImagePkgList event with empty 'pkgdata', 'imgdata' and 'filedata'
fields. This causes crash in buildinfohelper code as it's assumed
that above mentioned fields always have data keyed by build target:

ERROR: u'core-image-minimal'
Traceback (most recent call last):
  File "toasterui.py", line 423, in main
    buildinfohelper.store_target_package_data(event)
  File "buildinfohelper.py", line 1218, in store_target_package_data
    imgdata = BuildInfoHelper._get_data_from_event(event)['imgdata'][target.target]
KeyError: u'core-image-minimal'

Fixed this by using dict.get method with empty dictionary as default
return value instead of trying to get value without checking if target
key is in the data.

(Bitbake rev: c39cc463e6d9594bf2c5ac8bb74e834f6f2cf7c8)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-04-06 23:10:30 +01:00
..
fetch2 bitbake: fetch2/git.py: remove .indirectiondir workaround 2016-04-06 10:29:47 +01:00
parse bitbake: BBHandler/ast: Merge handMethod and handleMethodFlags 2016-02-10 13:32:46 +00:00
pysh bitbake: lib: fix no newline at end of file 2014-07-04 09:28:36 +01:00
server bitbake: bitbake: xmlrpc: set single use mode differently 2016-03-24 12:31:50 +00:00
tests bitbake: tests/fetch.py: Improve unit tests for trusted network check 2016-04-03 15:53:44 +01:00
ui bitbake: buildinfohelper: fix KeyError 2016-04-06 23:10:30 +01:00
COW.py Apply some 2to3 refactorings 2010-07-02 15:41:37 +01:00
__init__.py bitbake: Bump version to 1.29.1 2016-03-31 09:13:04 +01:00
build.py bitbake: build/utils: Allow python functions to execute with real exception handling 2016-03-31 09:13:04 +01:00
cache.py bitbake: cache: Make BB_DONT_CACHE variable external 2016-03-23 17:54:41 +00:00
cache_extra.py bitbake: bitbake: cooker: get extra information from recipe cache 2013-09-22 12:19:44 +01:00
checksum.py bitbake: checksum: In FileChecksumCache don't follow directory symlinks 2016-03-30 12:01:29 +01:00
codeparser.py bitbake: bb/cache: drop some unused arguments 2016-02-18 07:41:15 +00:00
command.py bitbake: command: make setEventMask readonly 2016-03-07 17:23:04 +00:00
compat.py bitbake: compat/server/utils: Jettison pre python 2.7.3 workarounds 2013-06-14 17:26:30 +01:00
cooker.py bitbake: cooker: fix CookerParser.shutdown() 2016-03-31 09:13:04 +01:00
cookerdata.py bitbake: cookerdata.py: remove slash in the end 2016-03-31 09:13:04 +01:00
daemonize.py bitbake: lib/bb/*.py: Typo fixes/grammar/comment fixes, nothing functional. 2014-08-25 08:57:45 +01:00
data.py bitbake: build/data: Don't expand python functions before execution [API change] 2016-02-10 15:47:11 +00:00
data_smart.py bitbake: data_smart: Drop default expand=False to getVarFlag [API change] 2016-02-18 07:48:00 +00:00
event.py bitbake: event/utils/methodpool: Add a cache of compiled code objects 2015-12-22 00:02:05 +00:00
exceptions.py bitbake/exceptions: Handle reports from the field of exception code failures 2012-05-25 11:15:12 +01:00
main.py bitbake: bitbake: xmlrpc: set single use mode differently 2016-03-24 12:31:50 +00:00
methodpool.py bitbake: event/utils/methodpool: Add a cache of compiled code objects 2015-12-22 00:02:05 +00:00
monitordisk.py bitbake: monitordisk: don't log when not monitoring a filesystem for inodes 2014-09-29 12:08:48 +01:00
msg.py bitbake: Fix default function parameter assignment to a list 2015-08-19 18:05:44 +01:00
namedtuple_with_abc.py bitbake: lib/bb/*.py: Typo fixes/grammar/comment fixes, nothing functional. 2014-08-25 08:57:45 +01:00
persist_data.py bitbake: persist_data: Return str instead of unicode for sqlite3 text queries 2016-04-06 10:29:47 +01:00
process.py bitbake: Fix default function parameter assignment to a list 2015-08-19 18:05:44 +01:00
providers.py bitbake: providers: Fix PREFERRED_VERSION lookup for '_' in PN 2016-02-28 11:34:38 +00:00
runqueue.py bitbake: bb/runqueue: save task file dependency cache onto disk 2016-02-18 07:41:16 +00:00
shell.py Introduce new param caches_array into Cache impl. 2011-06-07 22:39:52 +01:00
siggen.py bitbake: siggen: Ensure tainted stamps are accounted for with writing custom stamps 2016-04-03 22:50:17 +01:00
taskdata.py bitbake: taskdata: Fix traceback issue with missing provider 2016-02-15 16:48:12 +00:00
tinfoil.py bitbake: tinfoil: remove logging handler at shutdown 2015-09-23 22:44:56 +01:00
utils.py bitbake: build/utils: Allow python functions to execute with real exception handling 2016-03-31 09:13:04 +01:00