summaryrefslogtreecommitdiffstats
path: root/meta/classes/buildhistory.bbclass
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2015-10-04 08:38:16 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-11-16 11:39:39 +0000
commit7cebff6bdcabdb0bda51f3961b21912f6cd2c9ac (patch)
tree158e26e16427da0ac9e2d6c313be88ded9dc1936 /meta/classes/buildhistory.bbclass
parent10fc53427a819310de332555eb8541a7b84ba328 (diff)
downloadpoky-7cebff6bdcabdb0bda51f3961b21912f6cd2c9ac.tar.gz
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. (From OE-Core rev: afe100436bdeefb024b924ee27ad68830f085ff4) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/buildhistory.bbclass')
-rw-r--r--meta/classes/buildhistory.bbclass2
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() {
80 pkginfo = PackageInfo(pkg) 80 pkginfo = PackageInfo(pkg)
81 with open(histfile, "r") as f: 81 with open(histfile, "r") as f:
82 for line in f: 82 for line in f:
83 lns = line.split('=') 83 lns = line.split('=', 1)
84 name = lns[0].strip() 84 name = lns[0].strip()
85 value = lns[1].strip(" \t\r\n").strip('"') 85 value = lns[1].strip(" \t\r\n").strip('"')
86 if name == "PE": 86 if name == "PE":