summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-03-20 16:06:27 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-21 14:16:25 +0000
commit2434a751e9684058786d4595cef3678d397f3c39 (patch)
tree9af377ae780ee4525fcab6ec9ffcba40a7b1ae84 /meta
parentee57a989188519dd40310cb5576cbff4b247ad95 (diff)
downloadopenembedded-core-2434a751e9684058786d4595cef3678d397f3c39.tar.gz
openembedded-core-2434a751e9684058786d4595cef3678d397f3c39.tar.bz2
openembedded-core-2434a751e9684058786d4595cef3678d397f3c39.zip
buildhistory_analysis: report if all items removed from a list
If all items have been removed from a list then state that explicitly. 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.py5
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:
added = list(set(bitems) - set(aitems))
if removed or added:
- out = '%s:%s%s' % (self.fieldname, ' removed "%s"' % ' '.join(removed) if removed else '', ' added "%s"' % ' '.join(added) if added else '')
+ if removed and not bitems:
+ out = '%s: removed all items "%s"' % (self.fieldname, ' '.join(removed))
+ else:
+ out = '%s:%s%s' % (self.fieldname, ' removed "%s"' % ' '.join(removed) if removed else '', ' added "%s"' % ' '.join(added) if added else '')
else:
out = '%s changed order' % self.fieldname
elif self.fieldname in numeric_fields: