two more patterns

This commit is contained in:
Arjan van de Ven
2015-11-27 15:23:12 -05:00
parent 0459fa7e11
commit 67731dd436
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -88,6 +88,11 @@ def process_NEWS(file):
success = 1
if news[i] == tarball.name + "-" + tarball.version + ":" and news[i - 1] == "":
start = i
if news[i] == "- " + config.old_version + ":" and news[i - 1] == "":
stop = i - 1
success = 1
if news[i] == "- " + tarball.version + ":" and news[i - 1] == "":
start = i
if news[i].find(config.old_version) >= 0 and news[i].find("*** Changes in ") >= 0 and news[i - 1] == "":
stop = i - 1
success = 1
+1
View File
@@ -23,6 +23,7 @@ import sys
transforms = {
'changelog': 'ChangeLog',
'changelog.txt': 'ChangeLog',
'changes.rst': 'ChangeLog',
'changes.txt': 'ChangeLog',
'news': 'NEWS'