From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2201) id 191EF386F012; Wed, 24 Jun 2020 20:49:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 191EF386F012 To: cygwin-apps-cvs@sourceware.org Subject: [calm - Cygwin server-side packaging maintenance script] branch master, updated. 20200611-5-gb63bbec X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 04bd5e1f23173972fcb095c6d34167fe55765313 X-Git-Newrev: b63bbec2c111c6554da7c6368017f840944783de Message-Id: <20200624204912.191EF386F012@sourceware.org> Date: Wed, 24 Jun 2020 20:49:12 +0000 (GMT) From: Jon TURNEY X-BeenThere: cygwin-apps-cvs@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin-apps git logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jun 2020 20:49:12 -0000 https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/calm.git;h=b63bbec2c111c6554da7c6368017f840944783de commit b63bbec2c111c6554da7c6368017f840944783de Author: Jon Turney Date: Wed Jun 24 21:41:49 2020 +0100 Handle maintainer names which start with an initial correctly When parsing cygwin-pkg-maint, a status is an allcaps word followed by whitespace, not by any non-alphanumeric character (so we recognize 'J.' as an initial forename, not the unknown status 'J'). Diff: --- calm/maintainers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calm/maintainers.py b/calm/maintainers.py index 9d7bdee..55363cc 100644 --- a/calm/maintainers.py +++ b/calm/maintainers.py @@ -148,7 +148,7 @@ def add_packages(mlist, pkglist, orphanMaint=None): rest = match.group(2) # does rest starts with a status in all caps? - status_match = re.match(r'^([A-Z]+)\b.*$', rest) + status_match = re.match(r'^([A-Z]+)\s.*$', rest) if status_match: status = status_match.group(1)