diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2012-03-20 16:06:27 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-21 15:33:07 +0000 |
commit | 4db604cd3a982ed0bac93df1f77d7206d8c7df8f (patch) | |
tree | 10cbae0aed4fb1400a534fe7ab6daaf40e7039ff /meta/lib/oe/buildhistory_analysis.py | |
parent | 275ef4900ebc7378a34d098005e905ad6c979954 (diff) | |
download | poky-4db604cd3a982ed0bac93df1f77d7206d8c7df8f.tar.gz |
buildhistory_analysis: report if all items removed from a list
If all items have been removed from a list then state that explicitly.
(From OE-Core rev: 2434a751e9684058786d4595cef3678d397f3c39)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/buildhistory_analysis.py')
-rw-r--r-- | meta/lib/oe/buildhistory_analysis.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/lib/oe/buildhistory_analysis.py b/meta/lib/oe/buildhistory_analysis.py index 2942f72d18..4f55d9ab68 100644 --- a/meta/lib/oe/buildhistory_analysis.py +++ b/meta/lib/oe/buildhistory_analysis.py | |||
@@ -76,7 +76,10 @@ class ChangeRecord: | |||
76 | added = list(set(bitems) - set(aitems)) | 76 | added = list(set(bitems) - set(aitems)) |
77 | 77 | ||
78 | if removed or added: | 78 | if removed or added: |
79 | out = '%s:%s%s' % (self.fieldname, ' removed "%s"' % ' '.join(removed) if removed else '', ' added "%s"' % ' '.join(added) if added else '') | 79 | if removed and not bitems: |
80 | out = '%s: removed all items "%s"' % (self.fieldname, ' '.join(removed)) | ||
81 | else: | ||
82 | out = '%s:%s%s' % (self.fieldname, ' removed "%s"' % ' '.join(removed) if removed else '', ' added "%s"' % ' '.join(added) if added else '') | ||
80 | else: | 83 | else: |
81 | out = '%s changed order' % self.fieldname | 84 | out = '%s changed order' % self.fieldname |
82 | elif self.fieldname in numeric_fields: | 85 | elif self.fieldname in numeric_fields: |