]> code.ossystems Code Review - openembedded-core.git/commit
classes/buildhistory: properly process escaped chars from pkgdata
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 11 Jul 2018 14:56:51 +0000 (16:56 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 18 Jul 2018 09:09:29 +0000 (10:09 +0100)
commitc258379181a438cb01728d223b3d05e0ab205941
treebd2877ef309f0427db0f433fd75e1ffea49d4802
parent801b705957dc683030d11393f43407d0b3506b6a
classes/buildhistory: properly process escaped chars from pkgdata

All values written out to pkgdata are escaped (see write_if_exists() in
package.bbclass). In practice there tend not to be characters that need
escaping except in the scriptlets (pkg_preinst, pkg_postinst, pkg_prerm
and pkg_postrm) where currently we still see the escape codes in the
corresponding files within buildhistory (e.g. \n and \t) and thus also
in the output of buildhistory-diff, hindering proper diffing of changes.
To fix this, when we read values from pkgdata and write them out to
buildhistory, we need to interpret the escape codes by doing the exact
reverse of what we do in package.bbclass.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/buildhistory.bbclass