generic-poky/bitbake/lib/bb
Paul Eggleton 9fd17bbe1c bitbake/cooker: avoid printing stack trace for -b match error
Improves error output for matching problems when the -b / --buildfile
command line option is used.

Rename MultipleMatches exception to NoSpecificMatch (as it is also
raised when there are no matching recipes) and make it inherit from
BBHandledException so that it doesn't print a stack trace (we always log
an ERROR prior to raising it.)

In addition, improve the formatting of the error message - only call the
log function once rather than once for every match, and use a more
appropriate message if there are no matches.

Fixes [YOCTO #1141]

(Bitbake rev: 803550a5098ec878164245e71344c3d687310b72)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-01-15 10:06:22 +00:00
..
fetch bitbake: Update users of getVar/setVar to use the data store functions directly 2011-11-27 10:35:30 +00:00
fetch2 bitbake/fetch2: reduce output for fetch failures 2012-01-15 10:06:22 +00:00
parse bitbake: Update users of getVar/setVar to use the data store functions directly 2011-11-27 10:35:30 +00:00
pysh make exception handling syntax consistent 2011-06-15 11:13:13 +01:00
server xmlrpc: Change BitbakeServerInfo init function 2012-01-06 15:55:56 +00:00
ui bitbake/knotty: avoid printing full task log when error already printed 2012-01-15 10:06:22 +00:00
COW.py Apply some 2to3 refactorings 2010-07-02 15:41:37 +01:00
__init__.py bitbake: Add BBHandledException exception class 2012-01-10 17:40:43 +00:00
build.py bitbake/knotty: avoid printing full task log when error already printed 2012-01-15 10:06:22 +00:00
cache.py bitbake: Update users of getVar/setVar to use the data store functions directly 2011-11-27 10:35:30 +00:00
cache_extra.py Introduce extra cache class for image creator 2011-06-07 22:39:12 +01:00
codeparser.py bitbake: Update users of getVar/setVar to use the data store functions directly 2011-11-27 10:35:30 +00:00
command.py bitbake: Add BBHandledException exception class 2012-01-10 17:40:43 +00:00
compat.py bitbake: Add missing file 2011-05-07 08:49:28 +01:00
cooker.py bitbake/cooker: avoid printing stack trace for -b match error 2012-01-15 10:06:22 +00:00
daemonize.py Apply some 2to3 transforms that don't cause issues in 2.6 2010-07-02 15:41:33 +01:00
data.py bitbake: Update users of getVar/setVar to use the data store functions directly 2011-11-27 10:35:30 +00:00
data_smart.py bitbake: Update users of getVar/setVar to use the data store functions directly 2011-11-27 10:35:30 +00:00
event.py cooker: remove command import in cooker.py 2012-01-06 15:55:57 +00:00
exceptions.py bb.exceptions: don't choke on frames without arguments 2011-06-08 20:38:25 +01:00
methodpool.py Consolidate the exec/eval bits, switch anonfunc to better_exec, etc 2010-07-02 15:41:31 +01:00
msg.py bitbake/lib/bb/msg.py: fix setting debug and verbosity levels 2011-09-25 16:25:27 +01:00
namedtuple_with_abc.py bb.namedtuple_with_abc: add useful util from activestate 2011-06-08 20:38:23 +01:00
persist_data.py bitbake: Update users of getVar/setVar to use the data store functions directly 2011-11-27 10:35:30 +00:00
process.py make exception handling syntax consistent 2011-06-15 11:13:13 +01:00
providers.py bitbake: Add BBHandledException exception class 2012-01-10 17:40:43 +00:00
runqueue.py bitbake/runqueue: avoid "failed" in task summary if nothing did 2012-01-15 10:06:21 +00:00
shell.py Introduce new param caches_array into Cache impl. 2011-06-07 22:39:52 +01:00
siggen.py siggen.py: If both sigs have a variable in it's whitelist then don't say it's changed 2011-12-05 16:23:52 +00:00
taskdata.py taskdata: fix string formatting of an error message 2011-09-20 22:22:21 +01:00
utils.py bitbake: Update users of getVar/setVar to use the data store functions directly 2011-11-27 10:35:30 +00:00