]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
fetch2: handle absolute paths in subdir
authorRoss Burton <ross.burton@intel.com>
Wed, 21 Sep 2016 16:31:27 +0000 (17:31 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 21 Sep 2016 21:19:55 +0000 (22:19 +0100)
commitc3873346c6fa1021a1d63bddd9b898a77c618432
treee3b4c5e6bd863f01ea0673b5c721068241d0a280
parent01e331cd0d612013badfb07df91151907f74903d
fetch2: handle absolute paths in subdir

Currently if you use the subdir parameter in a SRC_URI and pass an absolute path
then it gets appended to the unpack directory instead of being used directly.
This is inconvenient as it may be useful to use ${S} when you want to unpack a
file into the source tree.

Change this behaviour so that absolute paths are used directly instead of being
appended to the root directory.  To ensure that recipes cannot write files to an
arbitrary location enforce that the subdir starts with the unpack root.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/fetch2/__init__.py
lib/bb/tests/fetch.py