]> code.ossystems Code Review - openembedded-core.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:02:27 +0000 (11:02 +0000)
commite47d21624dfec6f71742b837e91da553f18a28c5
tree4d5296657218b97ee68070f5f04087bdf74a20ab
parentd9971f5dc8eb7de551fd6f5e058fd24770ef5d78
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].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
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