]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
toaster: add variable description for prefixed/suffixed variables
authorCristiana Voicu <cristiana.voicu@intel.com>
Fri, 1 Nov 2013 15:58:34 +0000 (15:58 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 1 Nov 2013 17:59:10 +0000 (17:59 +0000)
In the Configuration table, we need to link prefixed / suffixed
variables to the corresponding variable descriptions in documentation.conf.

[YOCTO #5198]

Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/ui/buildinfohelper.py

index 4996b4235dda0ce2489e184fa2faedfaa9aadd56..2ca0bd380ef86982bc83ffc324802f53b17988d9 100644 (file)
@@ -225,6 +225,11 @@ class ORMWrapper(object):
                 if value is None:
                     value = ''
                 desc = vardump[k]['doc'];
+                if desc is None:
+                    var_words = [word for word in k.split('_')]
+                    root_var = "_".join([word for word in var_words if word.isupper()])
+                    if root_var and root_var != k and root_var in vardump:
+                        desc = vardump[root_var]['doc']
                 if desc is None:
                     desc = ''
                 Variable.objects.create( build = build_obj,