Bug 8726

Summary: handle cached layers mechanism failure
Product: [Build System, Metadata & Runtime] Toaster Reporter: Michael Wood <michael.g.wood>
Component: toasterAssignee: Michael Wood <michael.g.wood>
Status: VERIFIED FIXED QA Contact: Libertad <libertad.gonzalez.de.la.cruz>
Severity: normal    
Priority: Low CC: belen.barros.pena, jessica.zhang, stanciux.mihail
Version: unspecified   
Target Milestone: 2.2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Michael Wood 2015-11-25 15:55:49 UTC
In localhostbecontrl we attempt to clone the current checkout rather than fetch it from the internet to speed up the initial build. This can save a reasonable amount of time as it can take a while to download the poky repo. However at the moment if it fails to do this correctly it's fatal

e.g. "
command: git clone "/var/www/toaster/jethro/bitbake" "/var/www/toaster/jethro/bitbake/_toaster_clones/_git___git.yoctoproject.org_poky_jethro" 
fatal: repository '/var/www/toaster/jethro/bitbake' does not exist 

"

And the build fails. We should handle this exception and just continue and git clone from the internet instead.
Comment 1 Michael Wood 2016-04-25 15:24:14 UTC
This was fixed via fixing  bug #8463

With a commit http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=e35c404537db0b46047fcb2ee7d3645e3e0935c5
Comment 2 Libertad 2016-05-11 19:40:50 UTC
Verified in bug 8463