]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
devtool: update-recipe: fix handling of compressed local patches
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Thu, 10 Nov 2016 01:45:17 +0000 (14:45 +1300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 23 Nov 2016 11:10:13 +0000 (11:10 +0000)
commit55a157f4e687de98d78f74e0ec7b4e9883599319
tree8702aaff3d6782ccfce84ab1f17d5acf4c82433f
parentd316363b7ba57cbf5300c6cd3b4cc68fb3258d6f
devtool: update-recipe: fix handling of compressed local patches

It is possible to use gzip or bzip2 to compress patches and still refer
to them in compressed form in the SRC_URI value within a recipe. If you
run "devtool modify" on such a recipe, make changes to the commit for
the patch and then run devtool update-recipe, we need to correctly
associate the commit back to the compressed patch file and re-compress
the patch, neither of which we were doing previously.

Additionally, add an oe-selftest test to ensure this doesn't regress in
future.

Fixes [YOCTO #8278].

(From OE-Core rev: e47d21624dfec6f71742b837e91da553f18a28c5)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta-selftest/recipes-test/devtool/devtool-test-patch-gz.bb [new file with mode: 0644]
meta-selftest/recipes-test/devtool/devtool-test-patch-gz/readme.patch.gz [new file with mode: 0644]
meta/classes/patch.bbclass
meta/lib/oe/recipeutils.py
meta/lib/oeqa/selftest/devtool.py
scripts/lib/devtool/standard.py