diff options
author | Angus Ainslie <nytowl@openmoko.org> | 2009-03-18 22:21:02 -0600 |
---|---|---|
committer | Jan Luebbe <jluebbe@debian.org> | 2009-03-26 11:34:34 +0100 |
commit | 74a53e093a52c80b85005c1e77a46523379e0005 (patch) | |
tree | c44b7d77354a9525a653bc774413bd15e3d6be10 | |
parent | 6eefb9570c8196d0ccd13e0d5da81790e80b0a88 (diff) | |
download | openembedded-74a53e093a52c80b85005c1e77a46523379e0005.tar.gz |
Allow openmoko2 to succeed on unsplitable sections
-rw-r--r-- | classes/openmoko2.bbclass | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/classes/openmoko2.bbclass b/classes/openmoko2.bbclass index ef734e4311..3294026071 100644 --- a/classes/openmoko2.bbclass +++ b/classes/openmoko2.bbclass @@ -6,12 +6,18 @@ OPENMOKO_MIRROR ?= "svn://svn.openmoko.org/trunk" def openmoko_two_get_license(d): import bb - openmoko, section = bb.data.getVar('SECTION', d, 1).split("/") + if bb.data.getVar('SECTION', d, 1).find("/") != -1 : + openmoko, section = bb.data.getVar('SECTION', d, 1).split("/") + else : + section = bb.data.getVar('SECTION', d, 1) return "LGPL GPL".split()[section != "libs"] def openmoko_two_get_subdir(d): import bb - openmoko, section = bb.data.getVar('SECTION', d, 1).split("/") + if bb.data.getVar('SECTION', d, 1).find("/") != -1 : + openmoko, section = bb.data.getVar('SECTION', d, 1).split("/") + else : + section = bb.data.getVar('SECTION', d, 1) if section == 'base': return "" elif section == 'libs': return "libraries" elif section in 'apps tools pim'.split(): return "applications" |