]> code.ossystems Code Review - openembedded-core.git/commitdiff
gnome.bbclass: change version regexp to handle x.y versions, not just x.y.z
authorRoss Burton <ross@openedhand.com>
Mon, 17 Sep 2007 18:52:01 +0000 (18:52 +0000)
committerRoss Burton <ross@openedhand.com>
Mon, 17 Sep 2007 18:52:01 +0000 (18:52 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2752 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/classes/gnome.bbclass

index 56233578aaba2ee80962dade863f6b0f3bd96e1d..b29d86cefd51176fc137ff4c93262b1ebd90b8ba 100644 (file)
@@ -1,6 +1,6 @@
 def gnome_verdir(v):
        import re
-       m = re.match("([0-9]+)\.([0-9]+)\..*", v)
+       m = re.match("^([0-9]+)\.([0-9]+)", v)
        return "%s.%s" % (m.group(1), m.group(2))
 
 SECTION ?= "x11/gnome"