Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 0FBA9E00720; Tue, 8 Mar 2016 10:05:41 -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=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [192.55.52.115 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id AA85BE00443 for ; Tue, 8 Mar 2016 10:05:37 -0800 (PST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP; 08 Mar 2016 10:05:38 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,557,1449561600"; d="scan'208";a="929512326" Received: from irsmsx110.ger.corp.intel.com ([163.33.3.25]) by orsmga002.jf.intel.com with ESMTP; 08 Mar 2016 10:05:36 -0800 Received: from irsmsx111.ger.corp.intel.com (10.108.20.4) by irsmsx110.ger.corp.intel.com (163.33.3.25) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 8 Mar 2016 18:05:33 +0000 Received: from irsmsx109.ger.corp.intel.com ([169.254.13.174]) by irsmsx111.ger.corp.intel.com ([169.254.2.127]) with mapi id 14.03.0248.002; Tue, 8 Mar 2016 18:05:32 +0000 From: "Barros Pena, Belen" To: "Wood, Michael G" , "toaster@yoctoproject.org" Thread-Topic: [Toaster] [PATCH v2 3/5] toaster: localhostbecontroller Allow file:/// uri type for git repo Thread-Index: AQHReWUaw8SLqSb+4keVd2b+z6F+9g== Date: Tue, 8 Mar 2016 18:05:31 +0000 Message-ID: References: <1457114340-16784-1-git-send-email-michael.g.wood@intel.com> <1457366599-12973-1-git-send-email-michael.g.wood@intel.com> <1457366599-12973-3-git-send-email-michael.g.wood@intel.com> In-Reply-To: <1457366599-12973-3-git-send-email-michael.g.wood@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.6.1.160122 x-originating-ip: [10.237.224.34] MIME-Version: 1.0 Subject: Re: [PATCH v2 3/5] toaster: localhostbecontroller Allow file:/// uri type for git repo 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, 08 Mar 2016 18:05:41 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-ID: <058A9F9DF22B704D901B45624BB7EA0A@intel.com> Content-Transfer-Encoding: quoted-printable On 07/03/2016 16:03, "toaster-bounces@yoctoproject.org on behalf of Michael Wood" wrote: >We don't need to skip file:/// uri type locations for git repositories. >If you're using a file:/// uri you should know that it has to be a local >path. > >[YOCTO #9200] This seems to work for me. I can import and build layers using both file:/// and without. Cheers Bel=E9n > >igned-off-by: Michael Wood >--- > bitbake/lib/toaster/bldcontrol/localhostbecontroller.py | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > >diff --git a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py >b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py >index 38e97a2..9deb572 100644 >--- a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py >+++ b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py >@@ -128,8 +128,9 @@ class >LocalhostBEController(BuildEnvironmentController): > gitrepos[(bitbake.giturl, bitbake.commit)].append( ("bitbake", >bitbake.dirpath) ) >=20 > for layer in layers: >- # we don't process local URLs >- if layer.giturl.startswith("file://"): >+ # We don't need to git clone the layer for the >CustomImageRecipe >+ # as it's generated by us layer on if needed >+ if CustomImageRecipe.LAYER_NAME in layer.name: > continue > if not (layer.giturl, layer.commit) in gitrepos: > gitrepos[(layer.giturl, layer.commit)] =3D [] >--=20 >2.5.0 > >--=20 >_______________________________________________ >toaster mailing list >toaster@yoctoproject.org >https://lists.yoctoproject.org/listinfo/toaster