Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/cygwin-apps/calm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2020-06-24 23:41:49 +0300
committerJon Turney <jon.turney@dronecode.org.uk>2020-06-24 23:55:16 +0300
commit2f15254c8bfb477a78ab15102c9844d542f42e36 (patch)
tree4faa4bb345e07d5dac3b2f93634ae8ca4861a5c6
parent04bd5e1f23173972fcb095c6d34167fe55765313 (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.py2
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)