From: Michael Wood Date: Wed, 7 Oct 2015 13:55:07 +0000 (+0100) Subject: toaster: buildinfohelper associate build data with built_recipe X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=34d4ef7289d72d151ad0acdccab8b99c8c31221e;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git toaster: buildinfohelper associate build data with built_recipe Make sure we associate build data with the built recipe rather than toaster's configuration copy of the recipe. Signed-off-by: Michael Wood Signed-off-by: Elliot Smith Signed-off-by: Richard Purdie --- diff --git a/lib/bb/ui/buildinfohelper.py b/lib/bb/ui/buildinfohelper.py index 9fdde29e14a..fc59c57d021 100644 --- a/lib/bb/ui/buildinfohelper.py +++ b/lib/bb/ui/buildinfohelper.py @@ -286,6 +286,7 @@ class ORMWrapper(object): update_recipe_obj(recipe) + built_recipe = None # Create a copy of the recipe for historical puposes and update it for built_layer in self.layer_version_built: if built_layer.layer == recipe_information['layer_version'].layer: @@ -301,7 +302,7 @@ class ORMWrapper(object): if created and must_exist: raise NotExisting("Recipe object created when expected to exist", recipe_information) - return recipe + return built_recipe def get_update_layer_version_object(self, build_obj, layer_obj, layer_version_information): if isinstance(layer_obj, Layer_Version):