From: Paul Eggleton Date: Sun, 4 Oct 2015 07:38:16 +0000 (+0100) Subject: classes/buildhistory: split package history values only once X-Git-Tag: 2016-4~2311 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=afe100436bdeefb024b924ee27ad68830f085ff4;p=openembedded-core.git 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 Signed-off-by: Ross Burton --- 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":