]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
bitbake: buildinfohelper: work around unicode exceptions
authorJoshua Lock <joshua.g.lock@intel.com>
Wed, 6 Apr 2016 12:50:23 +0000 (13:50 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 6 Apr 2016 22:10:30 +0000 (23:10 +0100)
commit7a309d964a86f3474eaab7df6d438ed797f935c0
tree0eff7577e5ba18d722d285c875c978e944022db2
parent860cba85cfb3047c8a2c9b3127a9b3f4441fd1a6
bitbake: buildinfohelper: work around unicode exceptions

We have been seeing UnicodeDecodeErrors when handling the
ImagePkgList MetadataEvent in ORMWrapper's
save_target_file_information() if the event includes filenames
that include non-ASCII characters.

In the short term work around this by converting paths to the
unicode type when passing them to Django's ORM. This is a bit of
a hack but it's too late in the cycle to do anything more invasive.

[YOCTO #9142]

(Bitbake rev: f50fff03b3de02e73a3cc2eb9935f7c345dbddc4)

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/ui/buildinfohelper.py