Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 519ABE00FC5; Fri, 25 Sep 2015 11:07:47 -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.212.181 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 3D5FEE00AD1 for ; Fri, 25 Sep 2015 11:07:43 -0700 (PDT) Received: by wicge5 with SMTP id ge5so31463757wic.0 for ; Fri, 25 Sep 2015 11:07:43 -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=iBMdPkeUUiKLUH3t3g57q+fN1tM7lBCWNlrN0Npb8NA=; b=bsmtznO7ywfwT5kmKU+x5FfJ+00cU40jeQ+Lus/ZFFnFosj23KC+gPSE+bWozpBaLs Poersj2IT9OCwQS/QLCBLbD9WFTFAnXTQPi9/9W9/RKpgxzg8dnJWLwi25Akumv7y6+g EqxaS2XurOBtngGAkjJsBot5yFGw3lBw5B9oNWY2Zj1za1D7wKb6QlCFZvP2nBdQolvt uwMi+NsQolXMhb+zMHeK/Dm9gQO+yMtsMNRCG1ydTvPpZYci4tJHt+7K1wC4C/X6tnCl 5LUHCQuchh1xaJACiwwa0D1+sAWQoQq/XYrWRbYWTD+RFyMc5qZ5+XNVu0uDrGGtiT1c ES+Q== X-Gm-Message-State: ALoCoQmEK5ILufkzpt8mKjBSIa9lIOVz3NNKX6I0E8QyWLSlzTVTNQi4pRT+i5n++y8O+nz5YpDv X-Received: by 10.194.171.3 with SMTP id aq3mr7853128wjc.54.1443204462942; Fri, 25 Sep 2015 11:07:42 -0700 (PDT) Received: from draco.isw.intel.com ([83.217.123.106]) by smtp.gmail.com with ESMTPSA id uq5sm4511789wjc.3.2015.09.25.11.07.42 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 25 Sep 2015 11:07:42 -0700 (PDT) From: Michael Wood To: toaster@yoctoproject.org Date: Fri, 25 Sep 2015 19:07:12 +0100 Message-Id: <1443204452-32244-2-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1443204452-32244-1-git-send-email-michael.g.wood@intel.com> References: <1443204452-32244-1-git-send-email-michael.g.wood@intel.com> Subject: [PATCH 01/21] toaster: make a workaround for old style index 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: Fri, 25 Sep 2015 18:07:47 -0000 From: Ed Bartosh For a new style indexes 'inherits' field is used to determine if recipe is an image recipe. As old style indexes don't have 'inherits' field this can be guessed from recipe name. Let's consider recipe an image recipe if recipe name contains '-image-'. Signed-off-by: Ed Bartosh --- bitbake/lib/toaster/orm/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py index 883ecf4..b5c8643 100644 --- a/bitbake/lib/toaster/orm/models.py +++ b/bitbake/lib/toaster/orm/models.py @@ -974,6 +974,8 @@ class LayerIndexLayerSource(LayerSource): ro.file_path = ri['filepath'] + "/" + ri['filename'] if 'inherits' in ri: ro.is_image = 'image' in ri['inherits'].split() + else: # workaround for old style layer index + ro.is_image = "-image-" in ri['pn'] ro.save() except IntegrityError as e: logger.debug("Failed saving recipe, ignoring: %s (%s:%s)" % (e, ro.layer_version, ri['filepath']+"/"+ri['filename'])) -- 2.1.4