Merge pull request #736 from cyian-1756/patchScriptFixes
Patch script fixes
This commit is contained in:
commit
576ed9596b
6
patch.py
6
patch.py
@ -30,8 +30,7 @@ def update_hash(current_hash):
|
|||||||
def update_change_list(message):
|
def update_change_list(message):
|
||||||
ripmeJson = get_ripme_json()
|
ripmeJson = get_ripme_json()
|
||||||
with open('ripme.json', 'w') as dataFile:
|
with open('ripme.json', 'w') as dataFile:
|
||||||
ripmeJson["changeList"] = ripmeJson["changeList"].insert(0, message)
|
ripmeJson["changeList"].insert(0, message)
|
||||||
print(ripmeJson["currentHash"])
|
|
||||||
json.dump(ripmeJson, dataFile, indent=4)
|
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'])
|
subprocess.call(['git', 'grep', '<version>' + nextVersion + '</version>', 'pom.xml'])
|
||||||
|
|
||||||
commitMessage = nextVersion + ': ' + message
|
commitMessage = nextVersion + ': ' + message
|
||||||
changeLogLine = ' \"' + commitMessage + '\",\n'
|
|
||||||
|
|
||||||
update_change_list(changeLogLine)
|
update_change_list(commitMessage)
|
||||||
|
|
||||||
|
|
||||||
print("Building ripme")
|
print("Building ripme")
|
||||||
|
Loading…
Reference in New Issue
Block a user