Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id EE3BDE0083D; Mon, 7 Mar 2016 08:07:07 -0800 (PST) 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.170 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-f170.google.com (mail-pf0-f170.google.com [209.85.192.170]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id C69E0E00720 for ; Mon, 7 Mar 2016 08:07:04 -0800 (PST) Received: by mail-pf0-f170.google.com with SMTP id 124so82918938pfg.0 for ; Mon, 07 Mar 2016 08:07:04 -0800 (PST) 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:in-reply-to:references; bh=ahqL4O/jucJ396gfsDb2VOTuP7BKGqSXkfhYYzrkgco=; b=GU3MFjd7UYIXELv1jYJLPxNNlBmAbbk201PSwHr03HkMxE+JtYHvJKAgF4h4Ylb3y9 6Fe9aTgo8ytX+aKFXIeaxlTeL/8p2X8YeVCbGgP8J8XKFXhu6KR5wTtnDB5HprVI8Vfi i+76tahsd1uTyRMSglZkmpwhSWEKKl1Z3Y6AAPJLooOrFwBNph6lZxWKzQaPrEcogwv6 UKHyNW6IRXXn4odD74sRU+TKmnIGkOtKUTUtyyhzMgO2CnnfYyVWwdWfoWgUVVgi0Hk0 S91PFvsHV+S/kHd7QMKMKaODNpUsGhjLJI+d3i+ndPjABS7jqgS4YD3JlUo3meDgKICD gjZg== 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=ahqL4O/jucJ396gfsDb2VOTuP7BKGqSXkfhYYzrkgco=; b=TgHKRP3DlbJxuC7mTqeuAmEBqEPhbtL+AEt0nkRb++noGvflJuPEznUWmLgyP9M6ka io2TtnGiisx2Jyejtg2dxCLFCGn0TYoFvULRC4TBafwx4wJKE0g4ZndU2aqYiqklpsjX 5CuQeqYCQtioafDxe5etsCOvZfzq1ikBEoFqg5AdD+4NdIBMA7kR9YkRz9s8P4w8D+5f kpl2X4Qe3v6MDWxs5OGf0xdvhZAs9lnI7wQewOP/7GNfhgUHznqgbPX7Rb6pP9i74fNK vWXS5U13vkzl5Lw00ugJPI6ka5tbneqmpB0aHHroSssV+Mb4hniG1JjdlZ8/sTF3qXsA 6o4g== X-Gm-Message-State: AD7BkJJyE22BNAmjm/th7HBg74TWmFNWBQoQ0v/ZPYsZ6Pu0jRMVIXEnUArbc4iRgnFcpTDA X-Received: by 10.98.1.203 with SMTP id 194mr35236817pfb.10.1457366824073; Mon, 07 Mar 2016 08:07:04 -0800 (PST) Received: from dorado.ger.corp.intel.com (fmdmzpr02-ext.fm.intel.com. [192.55.55.37]) by smtp.gmail.com with ESMTPSA id yj1sm25182440pac.16.2016.03.07.08.07.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 07 Mar 2016 08:07:02 -0800 (PST) From: Michael Wood To: toaster@yoctoproject.org Date: Mon, 7 Mar 2016 16:03:15 +0000 Message-Id: <1457366599-12973-1-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1457114340-16784-1-git-send-email-michael.g.wood@intel.com> References: <1457114340-16784-1-git-send-email-michael.g.wood@intel.com> Subject: [PATCH v2 1/5] toaster: localhostbecontroller Don't clear out toaster custom layer dir 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, 07 Mar 2016 16:07:08 -0000 We may have a recipe which is based on a custom image recipe that has already been built so keep the recipe file around so that it can be read by the generate recipe function. Signed-off-by: Michael Wood --- bitbake/lib/toaster/bldcontrol/localhostbecontroller.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py index efd82c3..38e97a2 100644 --- a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py +++ b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py @@ -217,9 +217,9 @@ class LocalhostBEController(BuildEnvironmentController): raise BuildSetupException("BE is not consistent: bblayers.conf file missing at %s" % bblayerconf) # 5. create custom layer and add custom recipes to it - layerpath = os.path.join(self.be.sourcedir, "_meta-toaster-custom") - if os.path.isdir(layerpath): - shutil.rmtree(layerpath) # remove leftovers from previous builds + layerpath = os.path.join(self.be.sourcedir, + "_meta-toaster-custom_", + bitbake.req.project.name) for target in targets: try: customrecipe = CustomImageRecipe.objects.get(name=target.target, -- 2.5.0