From a5ba72df33ee7e3a0dc5665ca96f6b96aff3bee9 Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Sat, 23 Jun 2018 18:24:10 -0400 Subject: [PATCH] Now uses update_change_list to update change list inststead of just inserting a string at a hardcoded line number --- patch.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/patch.py b/patch.py index 99b719eb..dd8bbea5 100644 --- a/patch.py +++ b/patch.py @@ -65,15 +65,8 @@ subprocess.call(['git', 'grep', '' + nextVersion + '', 'pom.x commitMessage = nextVersion + ': ' + message changeLogLine = ' \"' + commitMessage + '\",\n' -dataFile = open("ripme.json", "r") -ripmeJsonLines = dataFile.readlines() -ripmeJsonLines.insert(3, changeLogLine) -outputContent = ''.join(ripmeJsonLines) -dataFile.close() +update_change_list(changeLogLine) -dataFile = open("ripme.json", "w") -dataFile.write(outputContent) -dataFile.close() print("Building ripme") subprocess.call(["mvn", "clean", "compile", "assembly:single"])