Merge pull request #736 from cyian-1756/patchScriptFixes

Patch script fixes
This commit is contained in:
cyian-1756 2018-06-23 19:00:18 -04:00 committed by GitHub
commit 576ed9596b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,8 +30,7 @@ def update_hash(current_hash):
def update_change_list(message):
ripmeJson = get_ripme_json()
with open('ripme.json', 'w') as dataFile:
ripmeJson["changeList"] = ripmeJson["changeList"].insert(0, message)
print(ripmeJson["currentHash"])
ripmeJson["changeList"].insert(0, message)
json.dump(ripmeJson, dataFile, indent=4)
@ -63,9 +62,8 @@ subprocess.call(['sed', '-i', '-e', substrExpr, 'pom.xml'])
subprocess.call(['git', 'grep', '<version>' + nextVersion + '</version>', 'pom.xml'])
commitMessage = nextVersion + ': ' + message
changeLogLine = ' \"' + commitMessage + '\",\n'
update_change_list(changeLogLine)
update_change_list(commitMessage)
print("Building ripme")