diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2015-10-04 08:38:16 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-11-16 11:37:15 +0000 |
commit | afe100436bdeefb024b924ee27ad68830f085ff4 (patch) | |
tree | 68de15e30cf464a19fbceda8c0b2af6f57ddb936 /meta/classes/buildhistory.bbclass | |
parent | 9e5d037af17ad6dc38b3c7351b5862c301391d13 (diff) | |
download | openembedded-core-afe100436bdeefb024b924ee27ad68830f085ff4.tar.gz openembedded-core-afe100436bdeefb024b924ee27ad68830f085ff4.tar.bz2 openembedded-core-afe100436bdeefb024b924ee27ad68830f085ff4.zip |
classes/buildhistory: split package history values only once
We don't actually use values we read in here that are likely to
contain = characters but we might as well split the value properly in
case we do in future.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/classes/buildhistory.bbclass')
-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 4db0441993..a8653f9fd7 100644 --- a/meta/classes/buildhistory.bbclass +++ b/meta/classes/buildhistory.bbclass @@ -80,7 +80,7 @@ python buildhistory_emit_pkghistory() { pkginfo = PackageInfo(pkg) with open(histfile, "r") as f: for line in f: - lns = line.split('=') + lns = line.split('=', 1) name = lns[0].strip() value = lns[1].strip(" \t\r\n").strip('"') if name == "PE": |