community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1868070 - /comdev/reporter.apache.org/trunk/scripts/parsepmcs.py
Date Sun, 06 Oct 2019 18:36:27 GMT
Author: sebb
Date: Sun Oct  6 18:36:27 2019
New Revision: 1868070

URL: http://svn.apache.org/viewvc?rev=1868070&view=rev
Log:
No longer needed

Modified:
    comdev/reporter.apache.org/trunk/scripts/parsepmcs.py

Modified: comdev/reporter.apache.org/trunk/scripts/parsepmcs.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/scripts/parsepmcs.py?rev=1868070&r1=1868069&r2=1868070&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/scripts/parsepmcs.py (original)
+++ comdev/reporter.apache.org/trunk/scripts/parsepmcs.py Sun Oct  6 18:36:27 2019
@@ -28,10 +28,6 @@ if sys.hexversion < 0x030000F0:
     so to avoid mixing this with a genuine change, it needs to be planned, and
     done between normal updates.
     
-    It also reads
-    https://svn.apache.org/repos/asf/infrastructure/site/trunk/content/foundation/index.mdtext
-    and compares the chair names against committee-info.json.
-    Discrepancies are reported and also mailed to site-dev@apache.org
 """
 import errtee
 from urlutils import UrlCache
@@ -222,7 +218,6 @@ with open(__HOME + "history/projects.jso
     json.dump(projects, f, sort_keys=True ,indent=1, ensure_ascii=False)
     f.close()
 
-print("Checking foundation/index.mdtext against list of chairs from committee-info")
 chairs={}
 for e in c_info:
     if c_info[e]['pmc']:
@@ -233,38 +228,4 @@ for e in c_info:
         else:
             print("WARN: no chair name found for %s in CI" % v['display_name'])
 
-chairIndex = 'https://svn.apache.org/repos/asf/infrastructure/site/trunk/content/foundation/index.mdtext'
-resp = uc.get(chairIndex, name=None, encoding='utf-8', errors=None)
-web={}
-for line in resp:
-    m = re.match("^\| V.P., \[?Apache (.+?)(\]\(.+?\))? \| (.+?) \|", line)
-    if m:
-#         print(m.group(1),m.group(3))
-        web[m.group(1)] = m.group(3)
-chairDiffs = []
-for w in web:
-    if not w in chairs:
-        chairDiffs.append("Missing from cttee %s " % w)
-for c in sorted(chairs):
-    if not c in web:
-        chairDiffs.append("Missing from web page \n| V.P., Apache %s | %s |" % (c, chairs[c]))
-    else:
-        if not chairs[c] == web[c].strip():
-            chairDiffs.append("Mismatch: Apache %s ctte %s web %s" % (c, chairs[c], web[c]))
-        
-DEST='Site Development <site-dev@apache.org>'
-
-if len(chairDiffs) == 0:
-    print("foundation/index.mdtext list of chairs agrees with committee-info")
-else:
-    print("WARN: foundation/index.mdtext list of chairs disagrees with committee-info:")
-    for m in chairDiffs:
-        print(m)
-    try:
-        BODY="Comparison of foundation/index.mdtext list of chairs with committee-info\n"
-        errs = "\n".join(chairDiffs)
-        sendmail.sendMail("foundation/index list of chairs disagrees with committee-info",
BODY+"\n"+errs, DEST)
-    except Exception as e:
-        print("ERROR: unable to send email", e)
-
 print("All done! removed %u retired entries" % ret)



Mime
View raw message