[OE-core] [PATCH 25/26] distrodata.bbclass: do not use get_recipe_pv_without_srcpv() before comparing versions in checkpkg

Alexander Kanavin alexander.kanavin at linux.intel.com
Thu Jul 30 13:31:54 UTC 2015


That function is intended for use with git sources and contains some restrictive regexes
that don't work correctly when there are alphabetic characters in the version string.
We can simply compare the versions directly.

Signed-off-by: Alexander Kanavin <alexander.kanavin at linux.intel.com>
---
 meta/classes/distrodata.bbclass | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/meta/classes/distrodata.bbclass b/meta/classes/distrodata.bbclass
index af3af33..d33187b 100644
--- a/meta/classes/distrodata.bbclass
+++ b/meta/classes/distrodata.bbclass
@@ -341,10 +341,7 @@ python do_checkpkg() {
         if not pupver:
             pupver = "N/A"
         else:
-            pv, _, _ = oe.recipeutils.get_recipe_pv_without_srcpv(pversion, uri_type)
-            upv, _, _ = oe.recipeutils.get_recipe_pv_without_srcpv(pupver, uri_type)
-
-            cmp = vercmp_string(pv, upv)
+            cmp = vercmp_string(pversion, pupver)
             if cmp == -1:
                 pstatus = "UPDATE"
             elif cmp == 0:
-- 
2.1.4




More information about the Openembedded-core mailing list