bitbake: toasterui: fix version numbers for no PE specified
authorAlexandru DAMIAN <alexandru.damian@intel.com>
Mon, 2 Dec 2013 14:39:15 +0000 (14:39 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 10 Dec 2013 11:16:13 +0000 (11:16 +0000)
PE is an optional field in recipes specifiying the epoch
for the recipe. The canonical form for the
full recipe version string is: PE:PV-PR

If no PE is specified, we shouldn't store the initial ":"
character, as it leads to inconsistency with how the
version string is used elsewhere. This patch drops the leading ":"

    [YOCTO #5459]

(Bitbake rev: f6031bd753917c459ab232d88d7dcfc3f10e8184)

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/ui/buildinfohelper.py

index 0252efd..3d5f1c8 100644 (file)
@@ -531,7 +531,7 @@ class BuildInfoHelper(object):
 
             recipe_info = {}
             recipe_info['name'] = pn
-            recipe_info['version'] = event._depgraph['pn'][pn]['version']
+            recipe_info['version'] = event._depgraph['pn'][pn]['version'].lstrip(":")
             recipe_info['layer_version'] = layer_version_obj
             recipe_info['summary'] = event._depgraph['pn'][pn]['summary']
             recipe_info['license'] = event._depgraph['pn'][pn]['license']