]> code.ossystems Code Review - openembedded-core.git/commitdiff
gnomebase: trim the SRC_URI directory from the back
authorAlexander Kanavin <alex.kanavin@gmail.com>
Mon, 24 May 2021 09:13:34 +0000 (11:13 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 25 May 2021 21:35:54 +0000 (22:35 +0100)
Rather than take the first two components, drop the last one at the end.
This makes it compatible with both old and new gnome version schemes.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/gnomebase.bbclass

index efcb6caae159fd711f4912f3dec16d95520b468c..884b1a106f8c162ac5d8cc03e36d88f1210ce3f6 100644 (file)
@@ -1,5 +1,6 @@
 def gnome_verdir(v):
-    return oe.utils.trim_version(v, 2)
+    return ".".join(v.split(".")[:-1])
+
 
 GNOME_COMPRESS_TYPE ?= "xz"
 SECTION ?= "x11/gnome"