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>
This commit is contained in:
parent
10fc53427a
commit
7cebff6bdc
|
@ -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":
|
||||
|
|
Loading…
Reference in New Issue