]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
lib/oe/recipeutils: allow patch_recipe_file() to be re-called
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 29 Nov 2017 02:00:52 +0000 (15:00 +1300)
committerPaul Eggleton <paul.eggleton@linux.intel.com>
Tue, 5 Dec 2017 01:39:23 +0000 (14:39 +1300)
commita99c084e27b0c41bb7fabd8e33d26f014c541cc3
tree9f2fa64bc7ba10d7e52e36c06edc143eb81c74e8
parent14d9372e1dd715028f9ec181ffda89e43c7cb867
lib/oe/recipeutils: allow patch_recipe_file() to be re-called

If patch_recipe_file() is called with output redirection on the same
file twice in succession, then we don't want to wipe out the changes the
first call made so we need to be reading in the redirected file if it
exists instead of the original one.

This is important to enable devtool finish to work with multiple source
trees within the same recipe.

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