[U-Boot] [PATCH 1/2] buildman: Fix repeating board list with -l

Simon Glass sjg at chromium.org
Thu Oct 16 09:05:55 CEST 2014


Ensure that we don't print duplicate board names when -l is used.

Signed-off-by: Simon Glass <sjg at chromium.org>
Reported-by: Albert Aribaud <albert.u.boot at aribaud.net>
---

 tools/buildman/builder.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/buildman/builder.py b/tools/buildman/builder.py
index 8155c16..7002034 100644
--- a/tools/buildman/builder.py
+++ b/tools/buildman/builder.py
@@ -918,7 +918,8 @@ class Builder:
             if self._list_error_boards:
                 names = []
                 for board in line_boards[line]:
-                    names.append(board.target)
+                    if not board.target in names:
+                        names.append(board.target)
                 names_str = '(%s) ' % ','.join(names)
             else:
                 names_str = ''
-- 
2.1.0.rc2.206.gedb03e5



More information about the U-Boot mailing list