]> code.ossystems Code Review - openembedded-core.git/commit
recipetool: create: determine name/version from github/bitbucket URLs
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Thu, 11 Feb 2016 01:13:30 +0000 (14:13 +1300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 11 Feb 2016 12:32:55 +0000 (12:32 +0000)
commite8435fde7f82c39cc0efe1d4bf043b29f63898e9
tree79485d8485456289f2754a1df4d06a9166f5dd55
parentd0265bc67f797ee4b7760cf37335994133809abf
recipetool: create: determine name/version from github/bitbucket URLs

Both BitBucket and GitHub provide "release" downloads that unfortunately
don't include the actual project name. For recipetool this means we have
to have special handling for these URLs or else the current code assumes
the name of the project is something like "v0.9.1". Borrow and adapt
some code from autospec to do this, and put it in its own function for
clarity.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/recipetool/create.py