]> code.ossystems Code Review - openembedded-core.git/commit
devtool: update-recipe: support files with subdir=
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 31 Aug 2016 23:38:46 +0000 (11:38 +1200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 7 Sep 2016 23:36:43 +0000 (00:36 +0100)
commit9069fef5dad5a873c8a8f720f7bcbc7625556309
tree6ec3e3f47b5ae2ab7a49b1aa0bcbee4f1eccbac6
parent579e4d54a212d04cfece2c9fc0635d7ac1644058
devtool: update-recipe: support files with subdir=

It's rare but there are recipes that have individual files (as opposed
to archives) in SRC_URI using subdir= to put them under the source tree,
the examples in OE-Core being bzip2 and openssl. This broke devtool
update-recipe (and devtool finish) because the file wasn't unpacked into
the oe-local-files directory and thus when it came time to update the
recipe, the file was assumed to have been deleted by the user and thus
the file was erroneously removed. Add logic to handle these properly so
that this doesn't happen.

(We still have another potential problem in that these files become part
of the initial commit from upstream, which could be confusing because
they didn't come from there - but that's a separate issue and not one
that is trivially solved.)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
meta/lib/oe/recipeutils.py
scripts/lib/devtool/standard.py