You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by se...@apache.org on 2015/10/18 12:22:31 UTC
svn commit: r1709254 - /comdev/reporter.apache.org/trunk/data/parsepmcs.py
Author: sebb
Date: Sun Oct 18 10:22:31 2015
New Revision: 1709254
URL: http://svn.apache.org/viewvc?rev=1709254&view=rev
Log:
COMDEV-167 parsepmcs.py regex for committer groups also matches -pmc groups
Delete the mistaken -pmc entries from projects.json (unix groups)
Modified:
comdev/reporter.apache.org/trunk/data/parsepmcs.py
Modified: comdev/reporter.apache.org/trunk/data/parsepmcs.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/data/parsepmcs.py?rev=1709254&r1=1709253&r2=1709254&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/data/parsepmcs.py (original)
+++ comdev/reporter.apache.org/trunk/data/parsepmcs.py Sun Oct 18 10:22:31 2015
@@ -36,6 +36,11 @@ projects = {}
with open("projects.json", "r", encoding='utf-8') as f:
projects = json.loads(f.read())
+# Delete mistaken entries
+for key in sorted(projects.keys()):
+ if key.endswith("-pmc"):
+ print("Dropping mistaken entry %s" % key)
+ del projects[key]
people = {}
newgroups = []
@@ -114,8 +119,6 @@ ret = 0
for project in projects:
for cid in projects[project]:
if len(projects[project][cid]) < 3 or projects[project][cid][2] < (time.time() - (86400*3)):
- if project.endswith("-pmc"): # these were mistaken entries
- continue
print("Dropping project entry %s %s" % (project, cid))
projects[project][cid] = "!" # flag for deletion
ret += 1