]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
fix patman --limit-cc option
authorBernhard Kirchen <bernhard.kirchen@mbconnectline.com>
Fri, 29 Jan 2021 14:10:08 +0000 (15:10 +0100)
committerSimon Glass <sjg@chromium.org>
Thu, 4 Mar 2021 02:17:25 +0000 (19:17 -0700)
patman's --limit-cc option parses its argument to an integer and uses
that to trim the list of CC recipients to a particular maximum. but that
only works if the cc variable is a list, which it is not.

Signed-off-by: Bernhard Kirchen <bernhard.kirchen@mbconnectline.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
tools/patman/series.py

index a6746e87c43d59836aeefe5f9acc252baf906eb2..41a11732fcdfd6f0fb4f1442d87462aa71a34ecd 100644 (file)
@@ -271,7 +271,7 @@ class Series(dict):
                 cc += get_maintainer.GetMaintainer(dir_list, commit.patch)
             for x in set(cc) & set(settings.bounces):
                 print(col.Color(col.YELLOW, 'Skipping "%s"' % x))
-            cc = set(cc) - set(settings.bounces)
+            cc = list(set(cc) - set(settings.bounces))
             if limit is not None:
                 cc = cc[:limit]
             all_ccs += cc