community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1709254 - /comdev/reporter.apache.org/trunk/data/parsepmcs.py
Date Sun, 18 Oct 2015 10:22:31 GMT
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



Mime
View raw message