Bug 12877

Summary: devtool sdk-update doesnt fail with broken link
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Vineeth Chowdary <vineeth.chowdary>
Component: Scripts and ToolsAssignee: Armin Kuster <akuster>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: ross.burton
Version: 2.4.5   
Target Milestone: 2.5.2   
Hardware: x86   
OS: Multiple   
Whiteboard: backport 2.4.4 and 2.5.2
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Vineeth Chowdary 2018-08-09 14:41:39 UTC
Rocko release (default configuration ):


Steps to repeat:
=====

$ wget http://mirrors.kernel.org/yocto/yocto/yocto-2.4/poky-rocko-18.0.0.tar.bz2
$ tar xvf poky-rocko-18.0.0.tar.bz2
$ cd poky-rocko-18.0.0
$ source oe-init-build-env
$ bitbake core-image-minimal -c do_populate_sdk_ext


(Install eSDK from installer)
$ tmp/deploy/sdk/poky-glibc-x86_64-core-image-minimal-i586-toolchain-ext-2.4.sh -p -y -d ~/sdk/sdk-1
$ . ~/sdk/sdk-1/environment-setup-i586-poky-linux

( broken link )
$ ping http://mylocal
[ ping: unknown host http://mylocal ]

(Update SDK with broken link)
$ devtool sdk-update http://mylocal


Observed Behaviour:
==================
NOTE: Starting bitbake server...
NOTE: Starting bitbake server...
NOTE: Already up-to-date


Expected Behaviour:
==================
sdk update shouldfail with proper failure message
Comment 2 Vineeth Chowdary 2018-08-09 15:06:08 UTC
Yes it is fixed with the provided commit.

Thank you very much
Comment 3 Armin Kuster 2018-08-09 16:08:37 UTC
commit backport to both stable/sumo & rocko test branches
Comment 5 Armin Kuster 2018-11-01 01:36:05 UTC
done