Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 5FBD8E00EC6; Mon, 5 Oct 2015 07:54:41 -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.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (sujith.h[at]gmail.com) * -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] * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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 CFA86E00C5B for ; Mon, 5 Oct 2015 07:54:28 -0700 (PDT) Received: by pacfv12 with SMTP id fv12so182842922pac.2 for ; Mon, 05 Oct 2015 07:54:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=10ei1QtYkc8JYRdFn4zV70SdtxoHLY+cc+jqzrNS97w=; b=qxR7SDB4CXUDbKoTxfILRY2dWnQ9hapUfbQaFQaJRPKjWu2lc9a8kN19J73gHJBAYC A0uyMkDWv6V9R1ZS9K3mzlxFn3NxDhKYWIbydpiR/tvV2ks6QOgd2sop3DMzZ/7qRWiu mx43tyX/4jVQeubYrhOh6cA8z6Bq/8zuC5lGpIMjwwVQD6J5OppzFcMl7c40xktgZ7ZD v41YQ5YSheYjYUC/EfDb+KhrTlhNvzcWAaH/zk8pzVr6otLI7Cq8xr5vqOgepz5gGdNE wCEbdYXox/U2HsYlSCXZDpWPyJbCjMjFAxRj9wNTqNjFxYUA8C1oHDGqXoHrzWXAQ/a5 YV+w== X-Received: by 10.68.131.6 with SMTP id oi6mr40713438pbb.3.1444056868171; Mon, 05 Oct 2015 07:54:28 -0700 (PDT) Received: from kdekidd0.inp-wifi.mentorg.com ([139.181.35.34]) by smtp.gmail.com with ESMTPSA id fb1sm28272509pab.9.2015.10.05.07.54.26 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 05 Oct 2015 07:54:27 -0700 (PDT) From: Sujith H To: toaster@yoctoproject.org Date: Mon, 5 Oct 2015 20:23:52 +0530 Message-Id: <1444056832-25706-3-git-send-email-sujith.h@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1444056832-25706-1-git-send-email-sujith.h@gmail.com> References: <1444056832-25706-1-git-send-email-sujith.h@gmail.com> Subject: [review-request][PATCH 3/3] toaster: Fix package include in UI 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: Mon, 05 Oct 2015 14:54:41 -0000 This patch fixes package include in UI Signed-off-by: Sujith H --- bitbake/lib/bb/ui/buildinfohelper.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py index 5e924ca..7018e4e 100644 --- a/bitbake/lib/bb/ui/buildinfohelper.py +++ b/bitbake/lib/bb/ui/buildinfohelper.py @@ -377,7 +377,7 @@ class ORMWrapper(object): # If the build request came from toaster this field # should contain the information from the layer_version # That created this build request. - if brl.layer_version: + if (layer_information['name'] == brl.name) and (brl.layer_version): return brl.layer_version # we matched the BRLayer, but we need the layer_version that generated this BR; reverse of the Project.schedule_build() @@ -511,8 +511,9 @@ class ORMWrapper(object): errormsg = "" for p in packagedict: searchname = p - if 'OPKGN' in pkgpnmap[p].keys(): - searchname = pkgpnmap[p]['OPKGN'] + if p in pkgpnmap: + if 'OPKGN' in pkgpnmap[p].keys(): + searchname = pkgpnmap[p]['OPKGN'] packagedict[p]['object'], created = Package.objects.get_or_create( build = build_obj, name = searchname ) if created or packagedict[p]['object'].size == -1: # save the data anyway we can, not just if it was not created here; bug [YOCTO #6887] -- 1.9.1