[oe-commits] Paul Eggleton : buildhistory_analysis: report if all items removed from a list

git at git.openembedded.org git at git.openembedded.org
Wed Mar 21 14:20:43 UTC 2012


Module: openembedded-core.git
Branch: master
Commit: 2434a751e9684058786d4595cef3678d397f3c39
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=2434a751e9684058786d4595cef3678d397f3c39

Author: Paul Eggleton <paul.eggleton at linux.intel.com>
Date:   Tue Mar 20 16:06:27 2012 +0000

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 at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 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 2942f72..4f55d9a 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:





More information about the Openembedded-commits mailing list