Skip to content

Commit

Permalink
Merge pull request #343 from nationalarchives/TDR-3676_fix_python_scr…
Browse files Browse the repository at this point in the history
…ipt_to_update_new_version

Fix python script check_for_new_version.py to update version correctly
  • Loading branch information
vimleshtna authored Jan 8, 2024
2 parents 2f76bc9 + e21dd1e commit e35ff67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/scripts/check_for_new_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)))

0 comments on commit e35ff67

Please sign in to comment.