oe.utils: added param_bool() method
authorEnrico Scholz <enrico.scholz@sigma-chemnitz.de>
Thu, 27 May 2010 02:41:09 +0000 (02:41 +0000)
committerChris Larson <chris_larson@mentor.com>
Thu, 27 May 2010 19:56:46 +0000 (12:56 -0700)
commit0d270547fdb047fb2bcc1f69d6ba1f440c78578a
tree24af47be13307d6267943c44a697e3f2a8aaabef
parent311bed0b40aaa6298029f727d97f50c1d740a3fa
oe.utils: added param_bool() method

This new function works like dict's get() method but converts the
returned value to a boolean.

It is to be used to interpret e.g. 'apply=yes' parameters in SRC_URI.

Moved from base.bbclass into lib/oe/utils.py -kergoth

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
lib/oe/utils.py