]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
recipetool: create: support specifying a file as the local source
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Thu, 30 Jun 2016 04:34:43 +0000 (16:34 +1200)
committerPaul Eggleton <paul.eggleton@linux.intel.com>
Sun, 10 Jul 2016 23:02:42 +0000 (11:02 +1200)
commit5238d497c238a7629b3fa3dfc32cf0b52dc79980
tree3d5419321579b4c9d4762d5c76953638bf406f0b
parentaa33e3c26d53f41d094c1a0f563500c7c0508a63
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>
scripts/lib/devtool/standard.py
scripts/lib/recipetool/create.py