few more patterns

This commit is contained in:
Arjan van de Ven
2015-11-28 15:15:08 -05:00
parent 44256b771f
commit 2f777ae867
2 changed files with 8 additions and 1 deletions
+6
View File
@@ -96,6 +96,12 @@ def process_NEWS(file):
if news[i].find(config.old_version) >= 0 and news[i].find("*** Changes in ") >= 0 and news[i - 1] == "":
stop = i - 1
success = 1
if news[i].find(config.old_version) >= 0 and news[i].find("201") >= 0 and news[i - 1] == "":
stop = i - 1
success = 1
if news[i].lower().find(tarball.name + " " + config.old_version) >= 0 and news[i - 1] == "":
stop = i - 1
success = 1
if news[i].find(config.old_version) >= 0 and news[i].find("Version ") >= 0 and news[i - 1] == "":
stop = i - 1
success = 1
+2 -1
View File
@@ -22,6 +22,7 @@ import shutil
import sys
transforms = {
'changes': 'ChangeLog',
'changelog.txt': 'ChangeLog',
'changelog': 'ChangeLog',
'changes.rst': 'ChangeLog',
@@ -33,7 +34,7 @@ interests = transforms.keys()
def scan_for_changes(download_path, dir):
found = []
for dirpath, dirnames, files in os.walk(dir):
for dirpath, dirnames, files in os.walk(dir, topdown=False):
hits = [x for x in files if x.lower() in interests and x.lower() not in found]
for item in hits: