Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 8D159E00E9A; Tue, 6 Oct 2015 11:03:57 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.220.50 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail-pa0-f50.google.com (mail-pa0-f50.google.com [209.85.220.50]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 81101E00E77 for ; Tue, 6 Oct 2015 11:03:52 -0700 (PDT) Received: by pacex6 with SMTP id ex6so217151848pac.0 for ; Tue, 06 Oct 2015 11:03:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=IrR94AY5zvc9cUNI/ASutNADky/tb7q4VNcuFo2ebvo=; b=RSuiW4luniDTpxq663mJT/cDLneoGN39CP4c27gLiOm9i/FlCfaPsIJRDXS3CFIu9q Jds7064gZp6fkv9Ijy7lkm9J0l2GqabK+YtoKZJ1ru/Gql6YcIBmeJDiRpOUqpKB+dix l2vfvzEeRkq1Lc3u9tRdcVYdxX3FuTWCThuH3P9ZgnS1cFg2lX5om4MlawEPwgHFKTzK RFSxgws1jX67Eh9k4ne8puwqwnpm6R9zFPqtdxkJRgpaa5S07EHNEPjQghiQzOW4NVYq t4KT5xqq5IJFek2kHsH+GhTntxcH8rrLTqaNX1JVcYbwHE4vQwhpaZ7GnA992eqoAEYo 8Z+w== X-Gm-Message-State: ALoCoQk4lITsoFu+1NS3bdRAN6Tx543KcyWjYpdCGrllV3t+erUkOIG2zeiPUhXLD8oNxciX0IO4 X-Received: by 10.66.142.202 with SMTP id ry10mr49460561pab.86.1444154631952; Tue, 06 Oct 2015 11:03:51 -0700 (PDT) Received: from draco.ger.corp.intel.com (fmdmzpr01-ext.fm.intel.com. [192.55.54.36]) by smtp.gmail.com with ESMTPSA id xm9sm34728455pbc.32.2015.10.06.11.03.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 06 Oct 2015 11:03:50 -0700 (PDT) From: Michael Wood To: toaster@yoctoproject.org Date: Tue, 6 Oct 2015 19:03:40 +0100 Message-Id: <1444154621-3888-2-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1444154621-3888-1-git-send-email-michael.g.wood@intel.com> References: <1444154621-3888-1-git-send-email-michael.g.wood@intel.com> Subject: [PATCH 1/2] toaster: buildinfohelper associate build data with built_recipe X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Oct 2015 18:03:57 -0000 Make sure we associate build data with the built recipe rather than toaster's configuration copy of the recipe. Signed-off-by: Michael Wood --- bitbake/lib/bb/ui/buildinfohelper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py index 793418a..9195584 100644 --- a/bitbake/lib/bb/ui/buildinfohelper.py +++ b/bitbake/lib/bb/ui/buildinfohelper.py @@ -285,6 +285,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: @@ -300,7 +301,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): -- 2.1.4