[Toaster] [PATCH v2 3/5] toaster: localhostbecontroller Allow file:/// uri type for git repo
Barros Pena, Belen
belen.barros.pena at intel.com
Tue Mar 8 10:05:31 PST 2016
On 07/03/2016 16:03, "toaster-bounces at yoctoproject.org on behalf of
Michael Wood" <toaster-bounces at yoctoproject.org on behalf of
michael.g.wood at intel.com> 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én
>
>igned-off-by: Michael Wood <michael.g.wood at intel.com>
>---
> 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) )
>
> 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)] = []
>--
>2.5.0
>
>--
>_______________________________________________
>toaster mailing list
>toaster at yoctoproject.org
>https://lists.yoctoproject.org/listinfo/toaster
More information about the toaster
mailing list