gnomebase.bbclass: return the whole version for tarball directory if it is a number

E.g. if version is '43' without any dots, existing code would return ''.

(From OE-Core rev: f3dfc90b8d4e7735eedfeab99d0ebe2ba6e970a0)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit 38c15322bdbb2423973939e861b5ad1ffb5c8b7f)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Alexander Kanavin 2022-11-10 19:12:43 +01:00 committed by Richard Purdie
parent 3888c2e844
commit a5ce03a162

View File

@ -1,5 +1,5 @@
def gnome_verdir(v):
return ".".join(v.split(".")[:-1])
return ".".join(v.split(".")[:-1]) or v
GNOME_COMPRESS_TYPE ?= "xz"