Ensure we transform doc names, add support for CHANGES.rst

Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
This commit is contained in:
Ikey Doherty
2015-11-27 16:44:08 +00:00
parent 3287149b2a
commit 2bde0da1dc
+2 -1
View File
@@ -23,6 +23,7 @@ import sys
transforms = {
'changelog': 'ChangeLog',
'changes.rst': 'ChangeLog',
'news': 'NEWS'
}
interests = transforms.keys()
@@ -35,7 +36,7 @@ def scan_for_changes(download_path, dir):
hits = [x for x in files if x.lower() in interests and x.lower() not in found]
for item in hits:
source = os.path.join(dirpath, item)
target = os.path.join(download_path, item)
target = os.path.join(download_path, transforms[item.lower()])
try:
shutil.copy(source, target)
except Exception as e: