Bug 3279

Summary: yocto-bsp: do a sanity check and exit with a coherent message on failure
Product: [Build System, Metadata & Runtime] BSPs Reporter: Tom Zanussi <tom.zanussi>
Component: bsps-toolsAssignee: Tom Zanussi <tom.zanussi>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: alexandru.c.georgescu, dvhart, sgw
Version: 1.4   
Target Milestone: 1.4 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Tom Zanussi 2012-10-11 15:41:36 UTC
yocto-bsp create does a 'git ls-remote git://git.yoctoproject.org/linux-yocto-3.4.git *heads*' to get the set of existing branches from the kernel repo.

If the user isn't connected to the network, or if git isn't configured sanely, yocto-bsp fails with an ugly Python backtrace.

We should try to avoid this by doing a basic sanity check for those things before actually running the command.
Comment 1 Tom Zanussi 2013-01-16 18:34:33 UTC
Fixed by poky/master commit: a746719a46e9277a118fd7d4a6342bb667034132
Comment 2 Alexandru Georgescu 2013-02-22 10:20:48 UTC
Verified.