diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2021-05-24 11:13:34 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-05-25 22:35:54 +0100 |
commit | fa8950d0cf6174ce517275fe44df9e4c0788d5f0 (patch) | |
tree | 9b7760b8c67aaeb671043751de543419857bc187 /meta/classes | |
parent | 19b259d421aa878047104b92141c4d67963fc4e0 (diff) | |
download | openembedded-core-contrib-fa8950d0cf6174ce517275fe44df9e4c0788d5f0.tar.gz |
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 <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/gnomebase.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
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" |