]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
bitbake: 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>
Thu, 22 Sep 2016 10:18:11 +0000 (11:18 +0100)
commit37d5307db01fa3d708db1abd7bfb134edbba6dc0
treecb7c2cc39e271a4fdecadf3739b5dfd2e713008e
parent7358cbf36b6e1da0d51a67258da61226f8013e06
bitbake: 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.

(Bitbake rev: c3873346c6fa1021a1d63bddd9b898a77c618432)

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