]> code.ossystems Code Review - openembedded-core.git/commit
sanity.bbclass: expand error messages for version checks
authorPatrick Ohly <patrick.ohly@intel.com>
Thu, 17 Mar 2016 16:00:55 +0000 (17:00 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 20 Mar 2016 22:57:57 +0000 (22:57 +0000)
commit7fd08497cf780018fa144a870bdea0e7a69dae20
tree08c4c8cde65f6f4e9552a01037e7bd5a82c80a54
parent880a346bf1bc4aa6c8569c6319c141433e13e1dd
sanity.bbclass: expand error messages for version checks

The ${WORKDIR} variable was not getting expanded (anymore?), leading to
less helpful error messages like:

   Exception: NotImplementedError: Your version of bblayers.conf has the wrong LCONF_VERSION (has 7, expecting 8).
   Please compare your file against bblayers.conf.sample and merge any changes before continuing.
   "meld conf/bblayers.conf ${COREBASE}/meta*/conf/bblayers.conf.sample"

   is a good way to visualise the changes.

   ERROR: Execution of event handler 'check_sanity_eventhandler' failed

After adding expansion, embedding ${LCONF_VERSION} and ${LAYER_CONF_VERSION}
in the error message seems a bit more readable and consistent.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/sanity.bbclass