public inbox for cygwin-apps-cvs@sourceware.org
help / color / mirror / Atom feed
* [calm - Cygwin server-side packaging maintenance script] branch master, updated. d8b998ded7d572db2c11f97f558510ce28751a1c
@ 2016-05-08 12:40 jturney
0 siblings, 0 replies; only message in thread
From: jturney @ 2016-05-08 12:40 UTC (permalink / raw)
To: cygwin-apps-cvs
https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/calm.git;h=d8b998ded7d572db2c11f97f558510ce28751a1c
commit d8b998ded7d572db2c11f97f558510ce28751a1c
Author: Jon Turney <jon.turney@dronecode.org.uk>
Date: Sun May 8 12:37:32 2016 +0000
Report any lines with an unknown package status in cygwin-pkg-maint
Diff:
---
maintainers.py | 26 +++++++++++++++-----------
1 files changed, 15 insertions(+), 11 deletions(-)
diff --git a/maintainers.py b/maintainers.py
index a078376..3d6d9c1 100644
--- a/maintainers.py
+++ b/maintainers.py
@@ -105,17 +105,21 @@ class Maintainer(object):
m = match.group(2)
# if maintainer starts with a word in all caps, just use that
- m = re.sub(r'^([A-Z]+)\b.*$', r'\1', m)
-
- # ignore packages marked as 'OBSOLETE'
- if m == 'OBSOLETE':
- continue
-
- # orphaned packages get the default maintainer if we have
- # one, otherwise are assigned to 'ORPHANED'
- if m == 'ORPHANED':
- if orphanMaint is not None:
- m = orphanMaint
+ (m, n) = re.subn(r'^([A-Z]+)\b.*$', r'\1', m)
+ if n > 0:
+ # ignore packages marked as 'OBSOLETE'
+ if m == 'OBSOLETE':
+ continue
+
+ # orphaned packages get the default maintainer if we have
+ # one, otherwise are assigned to 'ORPHANED'
+ elif m == 'ORPHANED':
+ if orphanMaint is not None:
+ m = orphanMaint
+
+ else:
+ logging.error("unknown package status '%s' in line %s:%d: '%s'" % (m, pkglist, i, l))
+ continue
# joint maintainers are separated by '/'
for name in m.split('/'):
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-05-08 12:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-08 12:40 [calm - Cygwin server-side packaging maintenance script] branch master, updated. d8b998ded7d572db2c11f97f558510ce28751a1c jturney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).