summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-01-19 10:32:10 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-01-19 14:34:33 +0000
commitc1cebf6a2ba4661e8e46842413eef9a69a49fd47 (patch)
treeb6d80611bf5ab9f30f479105604d5ee79005c838 /meta
parent2f4f8ef0fc5f2ff024e21903520a2680b0524721 (diff)
downloadpoky-c1cebf6a2ba4661e8e46842413eef9a69a49fd47.tar.gz
buildhistory_analysis: correctly handle whitespace when splitting lists
Don't specify any argument to the split() function when handling changes to list type variables (e.g. PACKAGES) so that the values are split by any whitespace and only split once for a block of multiple whitespace characters. (From OE-Core rev: 15ad5d2c0e92fefdbb7c0cf064134b1cabfd84ac) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oe/buildhistory_analysis.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oe/buildhistory_analysis.py b/meta/lib/oe/buildhistory_analysis.py
index d3c0448fd1..a2fa643077 100644
--- a/meta/lib/oe/buildhistory_analysis.py
+++ b/meta/lib/oe/buildhistory_analysis.py
@@ -34,8 +34,8 @@ class ChangeRecord:
34 34
35 def __str__(self): 35 def __str__(self):
36 if self.fieldname in list_fields: 36 if self.fieldname in list_fields:
37 aitems = self.oldvalue.split(' ') 37 aitems = self.oldvalue.split()
38 bitems = self.newvalue.split(' ') 38 bitems = self.newvalue.split()
39 removed = list(set(aitems) - set(bitems)) 39 removed = list(set(aitems) - set(bitems))
40 added = list(set(bitems) - set(aitems)) 40 added = list(set(bitems) - set(aitems))
41 return '%s: %s:%s%s' % (self.path, self.fieldname, ' removed "%s"' % ' '.join(removed) if removed else '', ' added "%s"' % ' '.join(added) if added else '') 41 return '%s: %s:%s%s' % (self.path, self.fieldname, ' removed "%s"' % ' '.join(removed) if removed else '', ' added "%s"' % ' '.join(added) if added else '')