Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Paul Eggleton <paul.eggleton@linux.intel.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH 5/6] classes/buildhistory: split package history values only once
Date: Fri,  6 Nov 2015 13:01:19 +0000	[thread overview]
Message-ID: <aa2ecdb02ebdfd0775f52dfb42c836913b4e702d.1446814828.git.paul.eggleton@linux.intel.com> (raw)
In-Reply-To: <cover.1446814828.git.paul.eggleton@linux.intel.com>
In-Reply-To: <cover.1446814828.git.paul.eggleton@linux.intel.com>

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>
---
 meta/classes/buildhistory.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index 4db0441..a8653f9 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":
-- 
2.1.0



  parent reply	other threads:[~2015-11-06 13:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-06 13:01 [PATCH 0/6] Misc fixes for OE-Core Paul Eggleton
2015-11-06 13:01 ` [PATCH 1/6] meta/conf/layer.conf: fix typo Paul Eggleton
2015-11-06 13:01 ` [PATCH 2/6] meta: Fix typos in Upstream-Status labels Paul Eggleton
2015-11-06 13:01 ` [PATCH 3/6] gitignore: fix overzealous exclusion Paul Eggleton
2015-11-06 13:01 ` [PATCH 4/6] conf/distro/include: drop old recipes from include files Paul Eggleton
2015-11-06 13:01 ` Paul Eggleton [this message]
2015-11-06 13:01 ` [PATCH 6/6] classes/distrodata: split SRC_URI properly before determining type Paul Eggleton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aa2ecdb02ebdfd0775f52dfb42c836913b4e702d.1446814828.git.paul.eggleton@linux.intel.com \
    --to=paul.eggleton@linux.intel.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox