]> code.ossystems Code Review - openembedded-core.git/commit
logging.bbclass: avoid bashism in bbdebug()
authorPatrick Ohly <patrick.ohly@intel.com>
Mon, 15 Jun 2015 08:20:49 +0000 (10:20 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 23 Jun 2015 10:38:10 +0000 (11:38 +0100)
commit25cb71799e72d4e0c4fe39653d8b84280d087372
treef8cac3ed4fc81475def02fd2d835a76e87b4a1b8
parenta0460ac8a2595d4b064b483ca1f282a255ae6411
logging.bbclass: avoid bashism in bbdebug()

Checking the bbdebug() debug level parameter with a regular
test expression only works in bash. Using tr to filter out
digits and then checking whether anything is left achieves
the same result and is more portable.

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