summaryrefslogtreecommitdiffstats
path: root/bitbake/bin
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2016-07-07 11:57:09 +1200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-12 23:10:16 +0100
commit029e3ebcb2fc603bba264b589cbcfeb0ef963fc8 (patch)
tree9767b6fc6da0e8f72acc8bf40c86cb33660e1657 /bitbake/bin
parentf465039737112a3975ad3b224a9351e4ac780088 (diff)
downloadpoky-029e3ebcb2fc603bba264b589cbcfeb0ef963fc8.tar.gz
lib/oe/patch: handle encoding differences in patch files
With Python 3, the encoding of a file is significant; several recipes in OE-Core have patches which are not fully utf-8 decodable e.g. man, lrzsz, and gstreamer1.0-libav, leading to errors when using devtool's modify, upgrade or extract subcommands on these recipes. To work around this, try reading the patch file as utf-8 first and if that fails try latin-1 before giving up. (From OE-Core rev: 7f4d7a6f51569954e204f110827a8ce256bcdc68) 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>
Diffstat (limited to 'bitbake/bin')
0 files changed, 0 insertions, 0 deletions