public inbox for cygwin-apps-cvs@sourceware.org help / color / mirror / Atom feed
From: jturney@sourceware.org To: cygwin-apps-cvs@sourceware.org Subject: [calm - Cygwin server-side packaging maintenance script] branch master, updated. d8b998ded7d572db2c11f97f558510ce28751a1c Date: Sun, 08 May 2016 12:40:00 -0000 [thread overview] Message-ID: <20160508124022.54651.qmail@sourceware.org> (raw) 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('/'):
reply other threads:[~2016-05-08 12:40 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20160508124022.54651.qmail@sourceware.org \ --to=jturney@sourceware.org \ --cc=cygwin-apps-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).