From patchwork Thu Nov 21 09:12:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: kim.hansen@prevas.dk X-Patchwork-Id: 293132 X-Patchwork-Delegate: esben@haabendal.dk Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hugin.dotsrc.org (hugin.dotsrc.org [IPv6:2001:878:346::102]) by ozlabs.org (Postfix) with ESMTP id 091F82C00D0 for ; Thu, 21 Nov 2013 23:53:17 +1100 (EST) Received: from hugin.dotsrc.org (localhost [127.0.0.1]) by hugin.dotsrc.org (Postfix) with ESMTP id 503C43FEF5 for ; Thu, 21 Nov 2013 13:53:16 +0100 (CET) X-Original-To: dev@oe-lite.org Delivered-To: dev@oe-lite.org Received: from mail01.prevas.se (mail01.prevas.se [62.95.78.3]) by hugin.dotsrc.org (Postfix) with ESMTPS id 277CE3F89B for ; Thu, 21 Nov 2013 13:53:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=prevas.dk; i=@prevas.dk; l=810; q=dns/txt; s=ironport1; t=1385038391; x=1416574391; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=EyCpMxowUHfjgPPvKJO6EzT1KS5To1oVuRmlhzPceH4=; b=YhOkP7ZQvBi0MOGCbELWCgHzHKK0Zu5aL4PzsSVI/uvlBXbrJukg/Dpz EmfM+jLZfjAmN+ZP68HfcjNuGF5uVhA8QabZoH7rOiArrmXtJPqU0PZyq eBTPEHhCX6SOT8b57cfKElLkUveaBohW5QRfZrSKgTRfKoVH4XWyRbjaf E=; X-IronPort-AV: E=Sophos;i="4.93,744,1378850400"; d="scan'208";a="4162648" Received: from vmprevas3.prevas.se (HELO smtp.prevas.se) ([172.16.8.103]) by ironport1.prevas.se with ESMTP/TLS/AES128-SHA; 21 Nov 2013 13:53:09 +0100 Received: from arh146.prevas.dk (172.16.11.7) by smtp.prevas.se (172.16.8.105) with Microsoft SMTP Server (TLS) id 14.2.347.0; Thu, 21 Nov 2013 13:53:09 +0100 Received: by arh146.prevas.dk (Postfix, from userid 1000) id 83FED274034D; Thu, 21 Nov 2013 10:12:06 +0100 (CET) From: To: Subject: [core 2/2] baker.py: only print if there is actually a prebaked file available Date: Thu, 21 Nov 2013 10:12:03 +0100 Message-ID: <1385025123-32592-1-git-send-email-kim.hansen@prevas.dk> X-Mailer: git-send-email 1.8.4.2 MIME-Version: 1.0 X-Originating-IP: [172.16.11.7] X-BeenThere: dev@oe-lite.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: OE-lite development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dev-bounces@oe-lite.org Errors-To: dev-bounces@oe-lite.org From: Kim Højgaard-Hansen --- lib/oelite/baker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/oelite/baker.py b/lib/oelite/baker.py index dfb99d2..dbe1663 100644 --- a/lib/oelite/baker.py +++ b/lib/oelite/baker.py @@ -487,7 +487,8 @@ class OEliteBaker: deploy_dir, package.type, package.arch + (package.recipe.meta.get("EXTRA_ARCH") or ""), "%s_%s_%s.tar"%(package.name, recipe.version, buildhash)) - debug("will use from build: %s"%(filename)) + if(os.path.exists(filename)): + debug("will use from build: %s"%(filename)) self.runq.set_package_filename(package.id, filename) self.runq.mark_primary_runq_depends()