summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarko Lindqvist <cazfi74@gmail.com>2013-06-07 00:44:11 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-06-11 15:38:00 +0100
commit706ce359571fadb3bafc4320ffb054888fcbab10 (patch)
tree6a8ecab107f988c86ce6f20c27fd25899e19c463
parentc7ebd7e527a77ab40e280824f77241db9b3b710b (diff)
downloadpoky-706ce359571fadb3bafc4320ffb054888fcbab10.tar.gz
gnomebase.bbclass: implement gnome_verdir() using trim_version()
(From OE-Core rev: 2341c0b801b62d0249567806a70d9a38f4dfe17f) Signed-off-by: Marko Lindqvist <cazfi74@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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 @@
1def gnome_verdir(v): 1def gnome_verdir(v):
2 import re 2 return oe.utils.trim_version(v, 2)
3 m = re.match("^([0-9]+)\.([0-9]+)", v)
4 return "%s.%s" % (m.group(1), m.group(2))
5 3
6GNOME_COMPRESS_TYPE ?= "bz2" 4GNOME_COMPRESS_TYPE ?= "bz2"
7SECTION ?= "x11/gnome" 5SECTION ?= "x11/gnome"