openmoko2.bbclass, openmoko-base.bbclass: Fix openmoko_two_get_license and openmoko_t...
authorKhem Raj <raj.khem@gmail.com>
Wed, 15 Sep 2010 21:15:39 +0000 (14:15 -0700)
committerKhem Raj <raj.khem@gmail.com>
Thu, 16 Sep 2010 02:16:26 +0000 (19:16 -0700)
commitb0e141cadc987fa8003969e5b6173b75a7c882d3
tree5e099e92278e4f75e5b563c078223d35ae458141
parent25e515ba2ff7d9670b179fce85514f598094f13a
openmoko2.bbclass, openmoko-base.bbclass: Fix openmoko_two_get_license and openmoko_two_get_subdir

Usually openmoko inheriting recipes have SECTION like openmoko/libs
etc then the code works well but for packages e.g. -dev -dbg same
section is not true and the functions fail

File "openmoko2.bbclass", line 2, in openmoko_two_get_subdir
ValueError: need more than 1 value to unpack

This patch makes sure to split the string only if SECTION contains '/'

Signed-off-by: Khem Raj <raj.khem@gmail.com>
classes/openmoko-base.bbclass
classes/openmoko2.bbclass