Bug 10023 - recipetool create breaks on github tarballs
Summary: recipetool create breaks on github tarballs
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: Scripts and Tools (show other bugs)
Version: 2.1
Hardware: x86 Multiple
: Medium normal
Target Milestone: 2.2 M3
Assignee: Paul Eggleton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-07-25 23:27 UTC by Ross Burton
Modified: 2016-08-02 01:36 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: Regression (Used to work)
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ross Burton 2016-07-25 23:27:15 UTC
$ recipetool create https://github.com/mesonbuild/meson/releases/download/0.32.0/meson-0.32.0.tar.gz
NOTE: Fetching git://github.com/mesonbuild/meson/releases/download/0.32.0/meson-0.32.0.tar.gz;protocol=https...
ERROR: Fetcher failure: Fetch command [...] git -c core.fsyncobjectfiles=0 ls-remote https://github.com/mesonbuild/meson/releases/download/0.32.0/meson-0.32.0.tar.gz  failed with exit code 128, output:
fatal: repository 'https://github.com/mesonbuild/meson/releases/download/0.32.0/meson-0.32.0.tar.gz/' not found

That would be oe-core 7998dc35 being over-eager.  I guess it should examine the URL further and identify if its a git repo or a tarball (/releases/ or /archives/ should be all cases?)
Comment 2 Paul Eggleton 2016-08-02 01:36:02 UTC
FYI I also added oe-selftest tests for this:

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