From: Alexander Kanavin Date: Mon, 24 May 2021 09:13:34 +0000 (+0200) Subject: gnomebase: trim the SRC_URI directory from the back X-Git-Tag: uninative-3.3~644 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=fa8950d0cf6174ce517275fe44df9e4c0788d5f0;p=openembedded-core.git 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. Signed-off-by: Alexander Kanavin Signed-off-by: Richard Purdie --- diff --git a/meta/classes/gnomebase.bbclass b/meta/classes/gnomebase.bbclass index efcb6caae1..884b1a106f 100644 --- a/meta/classes/gnomebase.bbclass +++ b/meta/classes/gnomebase.bbclass @@ -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"