[Asterisk-code-review] mkrelease.py: Don't append the project name to ChangeLogs an... (repotools[master])

Matt Jordan asteriskteam at digium.com
Mon Jul 27 13:33:18 CDT 2015


Matt Jordan has uploaded a new change for review.

  https://gerrit.asterisk.org/975

Change subject: mkrelease.py: Don't append the project name to ChangeLogs and README files
......................................................................

mkrelease.py: Don't append the project name to ChangeLogs and README files

The ChangeLog and README files are always of the form
'ChangeLog-{version}' and 'README-{version}'. Currently, we are also
appending the project name, which is incorrect. This patch adds the
modified version name (subtituting out path delimiters) so that the
files have the expected name.

Change-Id: I9b6851725b3e2fadf26c86a8600505fa5b942622
---
M mkrelease.py
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/repotools refs/changes/75/975/1

diff --git a/mkrelease.py b/mkrelease.py
index 6fec6b1..b88440b 100755
--- a/mkrelease.py
+++ b/mkrelease.py
@@ -534,9 +534,9 @@
         path - The location of the extracted Asterisk release
         """
         shutil.copyfile(os.path.join(path, 'README'),
-                        'README-{0}'.format(release_name))
+                        'README-{0}'.format(version.replace('/', '-')))
         shutil.copyfile(os.path.join(path, 'ChangeLog'),
-                        'ChangeLog-{0}'.format(release_name))
+                        'ChangeLog-{0}'.format(version.replace('/', '-')))
         summary_prefix = '{0}-summary'.format(release_name)
         shutil.copyfile(os.path.join(path, '{0}.html'.format(summary_prefix)),
                         '{0}.html'.format(summary_prefix))

-- 
To view, visit https://gerrit.asterisk.org/975
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9b6851725b3e2fadf26c86a8600505fa5b942622
Gerrit-PatchSet: 1
Gerrit-Project: repotools
Gerrit-Branch: master
Gerrit-Owner: Matt Jordan <mjordan at digium.com>



More information about the asterisk-code-review mailing list