Bug 7644

Summary: devtool: add should support downloading a URL
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Ross Burton <ross.burton>
Component: devtools / tool chainAssignee: Paul Eggleton <bluelightning>
Status: VERIFIED FIXED QA Contact: Daniel Istrate <daniel.alexandrux.istrate>
Severity: enhancement    
Priority: Medium CC: bogdanx.a.voiculescu, meta.mr.watcher, meta.watcher
Version: 1.8   
Target Milestone: 1.9 M1   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Yes (doc changes required)

Description Ross Burton 2015-04-22 13:57:34 UTC
devtool add should magically support the source path being a URL, and download the file (ideally into DL_DIR with a .done), extracting to a temporary location to examine the contents, so the recipe has SRC_URI and checksums populated.
Comment 1 Paul Eggleton 2015-04-22 14:30:19 UTC
The functionality for this is already in recipetool, so this should be trivial to implement.
Comment 2 Paul Eggleton 2015-04-29 13:42:53 UTC
Just sent a series enabling this - I discovered a few other related issues along the way, so I fixed those too and added some tests.
Comment 3 Paul Eggleton 2015-05-05 08:36:07 UTC
Implementation merged to master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=266ea28183516646195226c9ac3297a5f45d3834

As above there were some other commits around it intended to help this use case as well.
Comment 4 Daniel Istrate 2015-10-09 13:33:19 UTC
Verified on master: eac61f37e36099f74485dab398b57f3812826d17

Functionality testing covered by oe-selftest testcase test_devtool_add_fetch (1160) from devtool.