]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
classes/buildhistory: properly process escaped chars from pkgdata paule/buildhistory-fixes2
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 11 Jul 2018 14:08:08 +0000 (16:08 +0200)
committerPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 11 Jul 2018 14:54:17 +0000 (16:54 +0200)
commit42c948694c528f287e4edbb3f3a062a41540aafd
tree45fc4dcc635a5327d628205d0eb123e0199f9165
parent69f22f2384c53f5cef4cafb5b66f8d25c42247e9
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>
meta/classes/buildhistory.bbclass