Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id B8F49E0048B; Tue, 15 Mar 2016 11:37:30 -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,DKIM_SIGNED, DKIM_VALID,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.192.182 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 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-pf0-f182.google.com (mail-pf0-f182.google.com [209.85.192.182]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 6D03DE006AE for ; Tue, 15 Mar 2016 11:37:05 -0700 (PDT) Received: by mail-pf0-f182.google.com with SMTP id n5so39284224pfn.2 for ; Tue, 15 Mar 2016 11:37:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=XMZ0m18k7PDIGbzKKInBrIFSgtgLrqIvyFFQVNGk9jI=; b=y88dSWACuVv8dpy1SGR4jVFCJiETLXHqFT7ldJ1V0zQFHEhcoeScTsb5071Amjn5u5 AtHakuhiSK5DV67wJPi54+Ab5jbqZgQ6MBfoCOuRh1qWNH08wqIAj/lc74DQ9pT7KA5L RiEOyStiLVVyk8ScRDEM22DVKw4vrGNXZ2CRqHc4hrt93ax8pBCWaX/rbUZBwlYTRDEZ NggyyUcDrW98jYyTiA0eQehAf0VNy1zp/I27qgY39wGz4a71RYG0tz60g+FjExpHb7hG cTH47P/9ObxCIkmNE4958kSMQY6D1rxz6y2pxFvcAovOEjSzcYzSBV7cConAul0kLgO0 ckqA== 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; bh=XMZ0m18k7PDIGbzKKInBrIFSgtgLrqIvyFFQVNGk9jI=; b=AgYa4NVlBImLxA518z3ZHHos8kb0lZ8vAe8MepH2eekKyAxsilq4YpoHRR9tLvmTZa RRbGEPONP9X5vSsex5KTxVfj20ym/woach9NGbfPgiMsw3Ttji47zP0HvpYr0tHHdCkX mjrJ0oUp/1dMyYN05A1oAqgVWjYys/SFyjhlIEHYQslN/1hse8Kt90j1F9HlZpvifEix HEyc9fa89Cgo2z6KiEZMfYqBoly0oDmjXtZ7Y0FzKe+Atv2gS46M9yymqx22l66oArFD Mk/Ul8cjQ86hx/KHNuIVd4/YGV0HM1P9ShV9ObSxXLe/qBwvJiKYQf3+kcmJbZJNTIJF W1kQ== X-Gm-Message-State: AD7BkJKWFiK8cTn8OTT8LJRVD3m5NjWlpY+w8Pd82LlnsM2Np5hz7NkkoxuRcm5oBk+8Oit6 X-Received: by 10.67.6.10 with SMTP id cq10mr48797317pad.120.1458067025521; Tue, 15 Mar 2016 11:37:05 -0700 (PDT) Received: from dorado.ger.corp.intel.com (fmdmzpr04-ext.fm.intel.com. [192.55.55.39]) by smtp.gmail.com with ESMTPSA id m84sm8645134pfi.75.2016.03.15.11.37.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 15 Mar 2016 11:37:04 -0700 (PDT) From: Michael Wood To: toaster@yoctoproject.org Date: Tue, 15 Mar 2016 18:36:57 +0000 Message-Id: <1458067017-11029-1-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.5.0 Subject: [PATCH] toaster: buildinfohelper Create target list for all types of build 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, 15 Mar 2016 18:37:30 -0000 Create the target list cache for command line builds and toaster triggered builds. This fixes a regression where the target is not identified as an image after building as the target cache is empty for toaster triggered builds [YOCTO #9266] Signed-off-by: Michael Wood --- bitbake/lib/bb/ui/buildinfohelper.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py index 7805086..28c7353 100644 --- a/bitbake/lib/bb/ui/buildinfohelper.py +++ b/bitbake/lib/bb/ui/buildinfohelper.py @@ -977,15 +977,16 @@ class BuildInfoHelper(object): event: a TargetsAcquired event with a task property (e.g. "build") and a targetsList property (e.g. ["zlib", "dropbear"]) """ - if self.internal_state['build'].project.is_default: - targets = map(lambda target: target + ':' + event.task, event.targetsList) + targets = map(lambda target: target + ':' + event.task, + event.targetsList) - target_information = { - 'targets': targets, - 'build': self.internal_state['build'] - } + target_information = { + 'targets': targets, + 'build': self.internal_state['build'] + } - self.internal_state['targets'] = self.orm_wrapper.get_or_create_targets(target_information) + self.internal_state['targets'] = \ + self.orm_wrapper.get_or_create_targets(target_information) def update_build(self, event): """ -- 2.5.0