From 8aebc3671de52d5578152a8450fbc436dfc916aa Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Sat, 23 Jun 2018 18:50:46 -0400 Subject: [PATCH 1/4] Fixed patch.py --- patch.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/patch.py b/patch.py index dd8bbea5..c31e58cb 100644 --- a/patch.py +++ b/patch.py @@ -30,8 +30,9 @@ 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"]) + new_cl = ripmeJson["changeList"].insert(0, message) + ripmeJson["changeList"] = new_cl + print(ripmeJson["changeList"]) json.dump(ripmeJson, dataFile, indent=4) From 54cc6661f13fbe44ea58db93721254d3efd8fe7f Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Sat, 23 Jun 2018 18:52:31 -0400 Subject: [PATCH 2/4] Fixed patch.py --- patch.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/patch.py b/patch.py index c31e58cb..ba468d23 100644 --- a/patch.py +++ b/patch.py @@ -30,9 +30,8 @@ def update_hash(current_hash): def update_change_list(message): ripmeJson = get_ripme_json() with open('ripme.json', 'w') as dataFile: - new_cl = ripmeJson["changeList"].insert(0, message) - ripmeJson["changeList"] = new_cl print(ripmeJson["changeList"]) + ripmeJson["changeList"].insert(0, message) json.dump(ripmeJson, dataFile, indent=4) From aaf31dc06548980b3895ceb81cfa1a878f318024 Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Sat, 23 Jun 2018 18:54:16 -0400 Subject: [PATCH 3/4] Fixed json formating --- patch.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/patch.py b/patch.py index ba468d23..6c2408d9 100644 --- a/patch.py +++ b/patch.py @@ -63,9 +63,8 @@ subprocess.call(['sed', '-i', '-e', substrExpr, 'pom.xml']) subprocess.call(['git', 'grep', '' + nextVersion + '', 'pom.xml']) commitMessage = nextVersion + ': ' + message -changeLogLine = ' \"' + commitMessage + '\",\n' -update_change_list(changeLogLine) +update_change_list(commitMessage) print("Building ripme") From a536738c1a4bf7ef82b199e87c92a97417ab1c09 Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Sat, 23 Jun 2018 18:59:42 -0400 Subject: [PATCH 4/4] No longer prints change list --- patch.py | 1 - 1 file changed, 1 deletion(-) diff --git a/patch.py b/patch.py index 6c2408d9..5ed45626 100644 --- a/patch.py +++ b/patch.py @@ -30,7 +30,6 @@ def update_hash(current_hash): def update_change_list(message): ripmeJson = get_ripme_json() with open('ripme.json', 'w') as dataFile: - print(ripmeJson["changeList"]) ripmeJson["changeList"].insert(0, message) json.dump(ripmeJson, dataFile, indent=4)