summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Lindqvist <cazfi74@gmail.com>2013-06-07 00:44:11 +0300
committerSaul Wold <sgw@linux.intel.com>2013-06-10 14:51:25 -0700
commit2341c0b801b62d0249567806a70d9a38f4dfe17f (patch)
tree61c11e734e16cc16558ae8eea2816c0c5563d70f
parente200e61529fa5a78354cde67442e90ace4b3857c (diff)
downloadopenembedded-core-2341c0b801b62d0249567806a70d9a38f4dfe17f.tar.gz
openembedded-core-2341c0b801b62d0249567806a70d9a38f4dfe17f.tar.bz2
openembedded-core-2341c0b801b62d0249567806a70d9a38f4dfe17f.zip
gnomebase.bbclass: implement gnome_verdir() using trim_version()
Signed-off-by: Marko Lindqvist <cazfi74@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
-rw-r--r--meta/classes/gnomebase.bbclass4
1 files changed, 1 insertions, 3 deletions
diff --git a/meta/classes/gnomebase.bbclass b/meta/classes/gnomebase.bbclass
index 91c476cab3..7539b9dcf8 100644
--- a/meta/classes/gnomebase.bbclass
+++ b/meta/classes/gnomebase.bbclass
@@ -1,7 +1,5 @@
def gnome_verdir(v):
- import re
- m = re.match("^([0-9]+)\.([0-9]+)", v)
- return "%s.%s" % (m.group(1), m.group(2))
+ return oe.utils.trim_version(v, 2)
GNOME_COMPRESS_TYPE ?= "bz2"
SECTION ?= "x11/gnome"