]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
toaster: exclude "set in documentation.conf" from variable history
authorCristiana Voicu <cristiana.voicu@intel.com>
Wed, 4 Dec 2013 13:58:06 +0000 (15:58 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 5 Dec 2013 16:27:07 +0000 (16:27 +0000)
That has no impact on the builds themselves, so we should just
remove that line from the variable history.

[YOCTO #5561]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/ui/buildinfohelper.py

index 61149fafd7941e93c2afc4dd9c83f2fb46fcecec..c99a51109bb91515de737b749e6c887169baa6e2 100644 (file)
@@ -245,10 +245,11 @@ class ORMWrapper(object):
                     variable_value = value,
                     description = desc)
                 for vh in vardump[k]['history']:
-                    VariableHistory.objects.create( variable = variable_obj,
-                            file_name = vh['file'],
-                            line_number = vh['line'],
-                            operation = vh['op'])
+                    if not 'documentation.conf' in vh['file']:
+                        VariableHistory.objects.create( variable = variable_obj,
+                                file_name = vh['file'],
+                                line_number = vh['line'],
+                                operation = vh['op'])
 
 class BuildInfoHelper(object):
     """ This class gathers the build information from the server and sends it