incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: r1172949 - /incubator/public/trunk/clutch.py
Date Tue, 20 Sep 2011 02:18:34 GMT
Author: crossley
Date: Tue Sep 20 02:18:34 2011
New Revision: 1172949

URL: http://svn.apache.org/viewvc?rev=1172949&view=rev
Log:
Improve some error reporting.

Modified:
    incubator/public/trunk/clutch.py

Modified: incubator/public/trunk/clutch.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/clutch.py?rev=1172949&r1=1172948&r2=1172949&view=diff
==============================================================================
--- incubator/public/trunk/clutch.py (original)
+++ incubator/public/trunk/clutch.py Tue Sep 20 02:18:34 2011
@@ -337,9 +337,12 @@ for k in projectNames:
     otherIssues.append(errorMsg)
     continue
 
-  if projects[k]['name'] != projectsTable[k]['name']:
-    print "WARN: Name '%(a)s' differs from reporting schedule name '%(b)s'" % \
-        {'a': projectsTable[k]['name'], 'b': projects[k]['name']}
+  # compare names, ignoring whitespace
+  if ''.join(projects[k]['name'].split()).lower() != ''.join(projectsTable[k]['name'].split()).lower():
+    print "WARN: Name '%s' differs from reporting schedule name '%s'" % \
+        (projectsTable[k]['name'], projects[k]['name'])
+
+  # parse their project status file to extract specific information
   statusFile = "site-author/projects/%s.xml" % projectsTable[k]['statusFileName']
   if os.path.exists(statusFile):
     dom = xml.dom.minidom.parse(statusFile)



---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org


Mime
View raw message