Skip to contentSkip to conversation

fix patman --limit-cc option

PATCH New Bernhard Kirchen 2 participants 3 messages Jan 29, 2021 – Feb 7, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix patman --limit-cc option

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.

---

 tools/patman/series.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/patman/series.py +1 -1
index a6746e87c4..41a11732fc 100644
@@ -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
Signature · 1 line
2.29.2
#1 lore raw

PATCH 1/1 fix patman --limit-cc option

Hi Bernhard,

Quoted 10 lines · Bernhard Kirchen

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.

---

 tools/patman/series.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

A test would be useful for this please as it is obviously missing...

#2 lore raw

PATCH 1/1 fix patman --limit-cc option

Hi Bernhard,

Quoted 10 lines · Bernhard Kirchen

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.

---

 tools/patman/series.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

A test would be useful for this please as it is obviously missing...

Applied to u-boot-dm, thanks!