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:36:08 +0100 |
commit | dc5bbd2607fe55e2cb42e655dfd86dc7531f5a86 (patch) | |
tree | 00ce50c9301c58185e5ff5c8f4943c6088f856e6 | |
parent | 9be54cb3dca2d9703d0ca996b7a851c1242b046d (diff) | |
download | poky-dc5bbd2607fe55e2cb42e655dfd86dc7531f5a86.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.
(From OE-Core rev: fa8950d0cf6174ce517275fe44df9e4c0788d5f0)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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 @@ | |||
1 | def gnome_verdir(v): | 1 | def gnome_verdir(v): |
2 | return oe.utils.trim_version(v, 2) | 2 | return ".".join(v.split(".")[:-1]) |
3 | |||
3 | 4 | ||
4 | GNOME_COMPRESS_TYPE ?= "xz" | 5 | GNOME_COMPRESS_TYPE ?= "xz" |
5 | SECTION ?= "x11/gnome" | 6 | SECTION ?= "x11/gnome" |