Skip to contentSkip to conversation

Allow openmoko2 to succeed on unsplitable sections

PATCH New Angus Ainslie 1 participant 1 message Mar 19, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Allow openmoko2 to succeed on unsplitable sections

---
 classes/openmoko2.bbclass |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
classes/openmoko2.bbclass +8 -2
index ef734e4..3294026 100644
@@ -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