gnomebase: trim the SRC_URI directory from the back

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.

(From OE-Core rev: fa8950d0cf6174ce517275fe44df9e4c0788d5f0)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Alexander Kanavin
2021-05-24 11:13:34 +02:00
committed by Richard Purdie
parent 9be54cb3dc
commit dc5bbd2607

View 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"