[oe-commits] Sebastian Spaeth : openmoko2.bbclass: sync with org.openembedded.org branch

git version control git at git.openembedded.org
Wed Dec 9 13:17:16 UTC 2009


Module: openembedded.git
Branch: shr/merge
Commit: ddb0601c4dbf9d842ea0bd02416dd66f5c47cc4a
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=ddb0601c4dbf9d842ea0bd02416dd66f5c47cc4a

Author: Sebastian Spaeth <Sebastian at SSpaeth.de>
Date:   Wed Dec  9 14:16:56 2009 +0100

openmoko2.bbclass: sync with org.openembedded.org branch

Signed-off-by: Sebastian Spaeth <Sebastian at SSpaeth.de>

---

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

diff --git a/classes/openmoko2.bbclass b/classes/openmoko2.bbclass
index f553d03..233c721 100644
--- a/classes/openmoko2.bbclass
+++ b/classes/openmoko2.bbclass
@@ -5,17 +5,11 @@ OPENMOKO_RELEASE ?= "OM-2007.2"
 OPENMOKO_MIRROR ?= "svn://svn.openmoko.org/trunk"
 
 def openmoko_two_get_license(d):
-    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)
+    openmoko, section = bb.data.getVar('SECTION', d, 1).split("/")
     return "LGPL GPL".split()[section != "libs"]
 
 def openmoko_two_get_subdir(d):
-    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)
+    openmoko, section = bb.data.getVar('SECTION', d, 1).split("/")
     if section == 'base': return ""
     elif section == 'libs': return "libraries"
     elif section in 'apps tools pim'.split(): return "applications"
@@ -32,3 +26,6 @@ SRC_URI := "${OPENMOKO_MIRROR}/src/target/${OPENMOKO_RELEASE}/${SUBDIR};module=$
 S = "${WORKDIR}/${PN}"
 
 FILES_${PN} += "${datadir}/icons"
+
+SVNREV = "r${SRCREV}"
+#SVNREV = "${SRCDATE}"





More information about the Openembedded-commits mailing list