From edaeb8940813b620090a0797ad3b6a076897512d Mon Sep 17 00:00:00 2001 From: Brendan Le Foll Date: Wed, 12 Nov 2014 11:42:39 +0000 Subject: bitbake: cooker.py: fix loginfo op being set to an invalid value loginfo "op" was being set to invalid values in saveConfigurationVar it was working because set is a python global but append is not. This replaces both the "op" with strings and removes the crash when calling appendConfigurationVar (Bitbake rev: 2a8e847de85546d43600a561f9c63aa36bd69222) Signed-off-by: Brendan Le Foll Signed-off-by: Richard Purdie --- bitbake/lib/bb/cooker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bitbake') diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index c6c69c30ea..087f72fc56 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py @@ -240,7 +240,7 @@ class BBCooker: f.write(total) #add to history - loginfo = {"op":append, "file":default_file, "line":total.count("\n")} + loginfo = {"op":"append", "file":default_file, "line":total.count("\n")} self.data.appendVar(var, val, **loginfo) def saveConfigurationVar(self, var, val, default_file, op): @@ -309,7 +309,7 @@ class BBCooker: f.write(total) #add to history - loginfo = {"op":set, "file":default_file, "line":total.count("\n")} + loginfo = {"op":"set", "file":default_file, "line":total.count("\n")} self.data.setVar(var, val, **loginfo) def removeConfigurationVar(self, var): -- cgit v1.2.3-54-g00ecf