Patchwork [V2,1/2] buildhistory_analysis.py: ignore lines without '='

login
register
mail settings
Submitter Andreas Müller
Date May 31, 2012, 11:12 a.m.
Message ID <1338462765-18412-1-git-send-email-schnitzeltony@googlemail.com>
Download mbox | patch
Permalink /patch/29015/
State New
Headers show

Comments

Andreas Müller - May 31, 2012, 11:12 a.m.
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
---
 meta/lib/oe/buildhistory_analysis.py |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

Patch

diff --git a/meta/lib/oe/buildhistory_analysis.py b/meta/lib/oe/buildhistory_analysis.py
index 29dc4a9..2b4582e 100644
--- a/meta/lib/oe/buildhistory_analysis.py
+++ b/meta/lib/oe/buildhistory_analysis.py
@@ -167,9 +167,10 @@  def blob_to_dict(blob):
     alines = blob.data_stream.read().splitlines()
     adict = {}
     for line in alines:
-        splitv = [i.strip() for i in line.split('=',1)]
-        if splitv.count > 1:
-            adict[splitv[0]] = splitv[1]
+        if line.find("=") != -1:
+            splitv = [i.strip() for i in line.split('=',1)]
+            if splitv.count > 1:
+                adict[splitv[0]] = splitv[1]
     return adict