]> code.ossystems Code Review - openembedded-core.git/commitdiff
classes/buildhistory: split package history values only once
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Sun, 4 Oct 2015 07:38:16 +0000 (08:38 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 16 Nov 2015 11:37:15 +0000 (11:37 +0000)
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>
meta/classes/buildhistory.bbclass

index 4db04419939407f02ce1dc5e4a0244d559a25560..a8653f9fd7b7219372ef763a9b0af02defddb858 100644 (file)
@@ -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":