From 1fed7040721e020f17371afcd4e178ab17261a2d Mon Sep 17 00:00:00 2001 From: jamshale Date: Tue, 13 Aug 2024 19:19:07 -0700 Subject: [PATCH 1/2] Fix upgrade parser Signed-off-by: jamshale --- repo_manager.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/repo_manager.py b/repo_manager.py index 95eada05c..a2796bab1 100644 --- a/repo_manager.py +++ b/repo_manager.py @@ -472,14 +472,18 @@ def main(arg_1=None, arg_2=None): for line in file: if f"## ACA-Py Release {global_version[0]}" in line: line = next(file) + print(line) line = next(file) + print(line) line = next(file) - while "***" not in line: + print(line) + while "### Plugins Upgraded" not in line: if ( line != "| Plugin Name | Supported ACA-Py Release |\n" and line != "| --- | --- |\n" ): + print(line) last_releases.append(line.strip()) line = next(file) break @@ -491,9 +495,12 @@ def main(arg_1=None, arg_2=None): # Get all released plugins and the plugins not on the global version for item in last_releases: - released_plugins.append(item.split("|")[1].strip()) - if item.split("|")[2].strip() == global_version[0]: - plugins_on_old_release.append(item.split("|")[1].strip()) + split_item = item.split("|") + if len(split_item) > 1: + released_plugins.append(split_item[1].strip()) + + if split_item[2].strip() == global_version[0]: + plugins_on_old_release.append(split_item[1].strip()) # If there is releases in the RELEASES.md file then look for new plugins and add them to plugins on old release if last_releases: From 5ecfd5548513f548d5536f6e3c238e830c512d84 Mon Sep 17 00:00:00 2001 From: jamshale Date: Tue, 13 Aug 2024 19:20:26 -0700 Subject: [PATCH 2/2] Remove print statements Signed-off-by: jamshale --- repo_manager.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/repo_manager.py b/repo_manager.py index a2796bab1..13e6abde3 100644 --- a/repo_manager.py +++ b/repo_manager.py @@ -472,18 +472,14 @@ def main(arg_1=None, arg_2=None): for line in file: if f"## ACA-Py Release {global_version[0]}" in line: line = next(file) - print(line) line = next(file) - print(line) line = next(file) - print(line) while "### Plugins Upgraded" not in line: if ( line != "| Plugin Name | Supported ACA-Py Release |\n" and line != "| --- | --- |\n" ): - print(line) last_releases.append(line.strip()) line = next(file) break