[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openembedded-core
Subject:    [OE-core] [V2 1/2] buildhistory_analysis.py: ignore lines without '='
From:       schnitzeltony () googlemail ! com (=?UTF-8?q?Andreas=20M=C3=BCller?=)
Date:       2012-05-31 11:12:44
Message-ID: 1338462765-18412-1-git-send-email-schnitzeltony () googlemail ! com
[Download RAW message or body]


Signed-off-by: Andreas M?ller <schnitzeltony at googlemail.com>
---
 meta/lib/oe/buildhistory_analysis.py |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

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
 
 
-- 
1.7.6.5




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic