From e21dd1ebf6054df6219e6e14beffaeb34df222c9 Mon Sep 17 00:00:00 2001 From: vimleshg Date: Fri, 5 Jan 2024 15:01:32 +0000 Subject: [PATCH] Fix python script check_for_new_version.py to update version correctly --- .github/scripts/check_for_new_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/check_for_new_version.py b/.github/scripts/check_for_new_version.py index 21e3fe9..4349437 100644 --- a/.github/scripts/check_for_new_version.py +++ b/.github/scripts/check_for_new_version.py @@ -66,7 +66,7 @@ def validate_xml(file_name): if validate_xml(f"DROID_SignatureFile_V{latest_droid_version}.xml"): conf_replaced = (replace_line(line, 'droid', latest_droid_version, "\n") for line in lines) if validate_xml(f"container-signature-{latest_containers_version}.xml"): - conf_replaced = (replace_line(line, 'containers', latest_containers_version) for line in lines) + conf_replaced = (replace_line(line, 'containers', latest_containers_version) for line in conf_replaced) if conf_replaced != '': conf.seek(0) conf.write(''.join(list(conf_replaced)))