]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit - meta/lib/oe/patch.py
lib/oe/patch: handle non-UTF8 encoding when reading patches
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 31 Aug 2016 03:28:46 +0000 (15:28 +1200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 7 Sep 2016 23:36:43 +0000 (00:36 +0100)
commit579e4d54a212d04cfece2c9fc0635d7ac1644058
treecb1e80167e3f58534c2a30e20c0b4a85b8f389c8
parente544ca08a2bcb5a8d98671e63f6c8b7b21c562ea
lib/oe/patch: handle non-UTF8 encoding when reading patches

When extracting patches from a git repository with PATCHTOOL = "git" we
cannot assume that all patches will be UTF-8 formatted, so as with other
places in this module, try latin-1 if utf-8 fails.

This fixes UnicodeDecodeError running devtool update-recipe or devtool
finish on the openssl recipe.

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