mirror of
https://github.com/clearlinux/autospec.git
synced 2026-09-07 06:11:46 +00:00
few more patterns
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user