[oe-commits] Angus Ainslie : Allow openmoko2 to succeed on unsplitable sections

GIT User account git at amethyst.openembedded.net
Thu Mar 26 10:45:15 UTC 2009


Module: openembedded.git
Branch: jan/master
Commit: 74a53e093a52c80b85005c1e77a46523379e0005
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=74a53e093a52c80b85005c1e77a46523379e0005

Author: Angus Ainslie <nytowl at openmoko.org>
Date:   Wed Mar 18 22:21:02 2009 -0600

Allow openmoko2 to succeed on unsplitable sections

---

 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"





More information about the Openembedded-commits mailing list