diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2014-01-25 21:25:05 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-02-03 11:56:55 +0000 |
commit | 15e0cdff08b8b9b826bbb9f00192a27318a3ee65 (patch) | |
tree | abceff33fb26bba83f343cf6492078575f5eb60b /meta/classes | |
parent | 12d7b44c817bdf6eea425bda607379594057c3fb (diff) | |
download | openembedded-core-15e0cdff08b8b9b826bbb9f00192a27318a3ee65.tar.gz openembedded-core-15e0cdff08b8b9b826bbb9f00192a27318a3ee65.tar.bz2 openembedded-core-15e0cdff08b8b9b826bbb9f00192a27318a3ee65.zip |
classes/buildhistory: fix expansion of escape sequences
OE-Core commit 259b8718a31b886f8a158aeb5de164840c9a28b2 fixed UTF-8
errors but broke decoding of escape sequences in strings (e.g.
pkg_postinst scripts had \n \t in them instead of newlines and tabs.)
We need a second call to decode() here as specifying 'string_escape' as
the second parameter won't do anything.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/buildhistory.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass index 545a42fe91..6b097ea20f 100644 --- a/meta/classes/buildhistory.bbclass +++ b/meta/classes/buildhistory.bbclass @@ -190,7 +190,7 @@ python buildhistory_emit_pkghistory() { key = item[0] if key.endswith('_' + pkg): key = key[:-len(pkg)-1] - pkgdata[key] = item[1].decode('utf-8', 'string_escape') + pkgdata[key] = item[1].decode('utf-8').decode('string_escape') pkge = pkgdata.get('PKGE', '0') pkgv = pkgdata['PKGV'] |