[oe-commits] Angus Ainslie : Allow openmoko2 to succeed on unsplitable sections
GIT User account
git at amethyst.openembedded.net
Thu Mar 19 13:53:34 UTC 2009
Module: openembedded.git
Branch: fso/milestone5.5
Commit: 48cb8c21a750c9314147a0ab3d6d03b094afe706
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=48cb8c21a750c9314147a0ab3d6d03b094afe706
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