]> code.ossystems Code Review - openembedded-core.git/commit
classes/sanity: fix handling of bblayers.conf updating
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Fri, 12 Apr 2013 20:16:51 +0000 (21:16 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 13 Apr 2013 22:45:33 +0000 (23:45 +0100)
commit46b00fdfc9d1e3dc180de087bae2682a1baa2954
treeb6c9e447f7b5c75fb266c5346f7ddc2e6a3b9bea
parent6310e66cd62aab6109027a8dce9c56bf721bea92
classes/sanity: fix handling of bblayers.conf updating

Fix the fairly long-standing problem of treating a newer bblayers.conf
in the same manner as an older one (reporting that it had been updated
even if nothing was done). The recent work to do a reparse without
having to manually re-run bitbake turned this from an annoyance into an
endless loop, so it had to be fixed.

As part of fixing this the following changes have been made:
* Extensions are now implemented using a function list, so distro layers
  can add their own functions which should either succeed (indicating
  they have successfully updated the file) or raise an exception
  (indicating nothing could be done). The functions are called in
  succession until one succeeds, at which point we reparse.
* If we can't do the update, the error message now says "older/newer"
  instead of just "older" since we only know the version is different.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/sanity.bbclass