[oe] [PATCH] Allow openmoko2 to succeed on unsplitable sections

Angus Ainslie nytowl at openmoko.org
Thu Mar 19 04:22:36 UTC 2009


---
 classes/openmoko2.bbclass |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/classes/openmoko2.bbclass b/classes/openmoko2.bbclass
index ef734e4..3294026 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"
--
1.5.6.3






More information about the Openembedded-devel mailing list