diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2020-06-24 23:41:49 +0300 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2020-06-24 23:55:16 +0300 |
commit | 2f15254c8bfb477a78ab15102c9844d542f42e36 (patch) | |
tree | 4faa4bb345e07d5dac3b2f93634ae8ca4861a5c6 | |
parent | 04bd5e1f23173972fcb095c6d34167fe55765313 (diff) |
Handle maintainer names which start with an initial correctly
When parsing cygwin-pkg-maint, a status is an allcaps word, not a single
capital letter (so we recognize 'J.' as an initial forename, not the
unknown status 'J').
-rw-r--r-- | calm/maintainers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/calm/maintainers.py b/calm/maintainers.py index 9d7bdee..6181845 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]{2,})\b.*$', rest) if status_match: status = status_match.group(1) |