summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2013-12-02 14:39:15 +0000
committerPaul Eggleton <paul.eggleton@linux.intel.com>2013-12-09 18:58:25 +0000
commitf6031bd753917c459ab232d88d7dcfc3f10e8184 (patch)
tree1c82e204c32ffd4a6145b06f09dc574bf2423837
parentf5d655bfaeb349c8680d74530617e34aa389d1f0 (diff)
downloadbitbake-f6031bd753917c459ab232d88d7dcfc3f10e8184.tar.gz
toasterui: fix version numbers for no PE specified
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] Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
-rw-r--r--lib/bb/ui/buildinfohelper.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/ui/buildinfohelper.py b/lib/bb/ui/buildinfohelper.py
index 0252efdfe..3d5f1c860 100644
--- a/lib/bb/ui/buildinfohelper.py
+++ b/lib/bb/ui/buildinfohelper.py
@@ -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']