]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
gnomebase.bbclass: return the whole version for tarball directory if it is a number
authorAlexander Kanavin <alex.kanavin@gmail.com>
Thu, 10 Nov 2022 18:12:43 +0000 (19:12 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 11 Nov 2022 13:43:37 +0000 (13:43 +0000)
E.g. if version is '43' without any dots, existing code would return ''.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/classes-recipe/gnomebase.bbclass

index 805daafa40cdaa87962743b41387ccb9c7dd06f0..5e72f549a380bf96c0fd75eb51888e5a37b0423e 100644 (file)
@@ -5,7 +5,7 @@
 #
 
 def gnome_verdir(v):
-    return ".".join(v.split(".")[:-1])
+    return ".".join(v.split(".")[:-1]) or v
 
 
 GNOME_COMPRESS_TYPE ?= "xz"