Bug 7644 - devtool: add should support downloading a URL
Summary: devtool: add should support downloading a URL
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 1.8
Hardware: All Multiple
: Medium enhancement
Target Milestone: 1.9 M1
Assignee: Paul Eggleton
QA Contact: Daniel Istrate
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-04-22 13:57 UTC by Ross Burton
Modified: 2015-10-09 13:33 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.