Patchwork [bitbake-devel] toaster: exclude "set in documentation.conf" from variable history

login
register
mail settings
Submitter Cristiana Voicu
Date Dec. 4, 2013, 1:58 p.m.
Message ID <1386165486-25470-1-git-send-email-cristiana.voicu@intel.com>
Download mbox | patch
Permalink /patch/62807/
State New
Headers show

Comments

Cristiana Voicu - Dec. 4, 2013, 1:58 p.m.
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>
---
 bitbake/lib/bb/ui/buildinfohelper.py |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

Patch

diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py
index 61149fa..c99a511 100644
--- a/bitbake/lib/bb/ui/buildinfohelper.py
+++ b/bitbake/lib/bb/ui/buildinfohelper.py
@@ -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