community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1687372 - /comdev/projects.apache.org/scripts/cronjobs/parsereleases.py
Date Wed, 24 Jun 2015 21:22:53 GMT
Author: hboutemy
Date: Wed Jun 24 21:22:52 2015
New Revision: 1687372

URL: http://svn.apache.org/r1687372
Log:
save every file name found for a release

Modified:
    comdev/projects.apache.org/scripts/cronjobs/parsereleases.py

Modified: comdev/projects.apache.org/scripts/cronjobs/parsereleases.py
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/scripts/cronjobs/parsereleases.py?rev=1687372&r1=1687371&r2=1687372&view=diff
==============================================================================
--- comdev/projects.apache.org/scripts/cronjobs/parsereleases.py (original)
+++ comdev/projects.apache.org/scripts/cronjobs/parsereleases.py Wed Jun 24 21:22:52 2015
@@ -56,10 +56,12 @@ def parseDir(committeeId, path):
                 parseDir(committeeId, "%s/%s" % (path, f))
         elif not re.search(r"(MD5SUM|SHA1SUM|\.md5|\.mds|\.sh1|\.sh2|\.sha|\.asc|\.sig|\.bin|\.pom|\.jar|\.whl|\.pdf|\.xml|\.xsd|\.html|\.txt|\.cfg|\.ish|\.pl|RELEASE.NOTES|LICENSE|KEYS|CHANGELOG|NOTICE|MANIFEST|Changes|readme|x86|amd64|-docs-|Announcement|current|-deps|-dependencies|binary|-bin-|-javadoc-|-distro|rat_report)",
f, flags=re.IGNORECASE):
             filename = cleanFilename(f)
-            if len(filename) > 1 and filename not in releases[committeeId]:
-                releases[committeeId][filename] = d
-                files[committeeId][filename] = "%s/%s" % (path, f)
-                print("                  - %s\t\t\t%s" % (filename, f))
+            if len(filename) > 1:
+                if filename not in releases[committeeId]:
+                    releases[committeeId][filename] = d
+                    files[committeeId][filename] = []
+                    print("                  - %s\t\t\t%s" % (filename, f))
+                files[committeeId][filename].append("%s/%s" % (path, f))
 
 
 for committeeId, d, xdir in getDirList(mainurl):



Mime
View raw message