fix patman --limit-cc option
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
@@ -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
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.
Signed-off-by Bernhard Kirchen <[email protected]>---
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...
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.
Signed-off-by Bernhard Kirchen <[email protected]>---
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!