diff options
| author | Tom Rini <[email protected]> | 2021-09-24 14:28:54 -0400 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2021-09-24 14:28:54 -0400 |
| commit | 8284d6f838684cfa6e3303a447deb38027c5d7f0 (patch) | |
| tree | 90edb1c771b2ae36a7676b3fbb523a67f79574fc /scripts | |
| parent | d7ac865b983ca42d242295bf8477025461983416 (diff) | |
| parent | 19de51f7a5a9a8e25f2a52033a39c17686d3a4e1 (diff) | |
Merge branch '2021-09-24-assorted-minor-updates'
- Assorted bugfixes, MAINTAINER updates and dead code removal
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/config_whitelist.txt | 1 | ||||
| -rwxr-xr-x | scripts/mailmapper | 14 |
2 files changed, 9 insertions, 6 deletions
diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt index ff24ab18731..a9c2380d17e 100644 --- a/scripts/config_whitelist.txt +++ b/scripts/config_whitelist.txt @@ -1427,7 +1427,6 @@ CONFIG_STM32_FLASH CONFIG_STV0991 CONFIG_STV0991_HZ CONFIG_STV0991_HZ_CLOCK -CONFIG_ST_SMI CONFIG_SXNI855T CONFIG_SYSFS CONFIG_SYSMGR_ISWGRP_HANDOFF diff --git a/scripts/mailmapper b/scripts/mailmapper index 2e2d7faff57..0e744ec1a0b 100755 --- a/scripts/mailmapper +++ b/scripts/mailmapper @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python3 # SPDX-License-Identifier: GPL-2.0+ # # Copyright (C) 2014, Masahiro Yamada <[email protected]> @@ -89,9 +89,10 @@ output = {} for line in shortlog.splitlines(): # tmp, mail = line.rsplit(None, 1) is not safe # because weird email addresses might include whitespaces - tmp, mail = line.split('<') - mail = '<' + mail.rstrip() try: + line = line.decode("utf-8") + tmp, mail = line.split('<') + mail = '<' + mail.rstrip() _, name = tmp.rstrip().split(None, 1) except ValueError: # author name is empty @@ -100,8 +101,11 @@ for line in shortlog.splitlines(): # another name for the same email address prev_name = mail_vs_name[mail] # Take the name with more commits - major_name = sorted([prev_name, name], - key=lambda x: commits_per_name[x] if x else 0)[1] + try: + major_name = sorted([prev_name, name], + key=lambda x: commits_per_name[x] if x else 0)[1] + except: + continue mail_vs_name[mail] = major_name if commits_per_name[major_name] > MIN_COMMITS: output[mail] = major_name |
