]> code.ossystems Code Review - openembedded-core.git/commit
recipetool: create: support specifying a file as the local source
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 6 Jul 2016 23:57:08 +0000 (11:57 +1200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 12 Jul 2016 22:10:04 +0000 (23:10 +0100)
commit71350003790c38e84b0e525a71a2fe5d24e3d083
treea0bf323098eeba2b91fe861a749853841e2cbead
parent7998dc3597657229507e5c140fceef1e485ac402
recipetool: create: support specifying a file as the local source

It is currently possible to specify a file (e.g. a tarball) on the local
disk as the source, but you have to know to put file:// in front of it.
There's really no need to force users to jump through that hoop if they
really want to do this so check if the specified source is a file and
prefix it with file:// if that's the case.

Also ensure the same works for "devtool add" at the same time.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/lib/devtool/standard.py
scripts/lib/recipetool/create.py