diff options
author | Marko Lindqvist <cazfi74@gmail.com> | 2013-06-07 00:44:11 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-06-11 15:38:00 +0100 |
commit | 706ce359571fadb3bafc4320ffb054888fcbab10 (patch) | |
tree | 6a8ecab107f988c86ce6f20c27fd25899e19c463 | |
parent | c7ebd7e527a77ab40e280824f77241db9b3b710b (diff) | |
download | poky-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.bbclass | 4 |
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 @@ | |||
1 | def gnome_verdir(v): | 1 | def 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 | ||
6 | GNOME_COMPRESS_TYPE ?= "bz2" | 4 | GNOME_COMPRESS_TYPE ?= "bz2" |
7 | SECTION ?= "x11/gnome" | 5 | SECTION ?= "x11/gnome" |