From 887665ddb7e4829503ed1b392ae96793b872cce6 Mon Sep 17 00:00:00 2001 From: David Arnold Date: Fri, 8 Mar 2024 14:00:00 +0100 Subject: [PATCH] fix: #255 this ensures the newver file keeps untouched records --- nvchecker/__main__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nvchecker/__main__.py b/nvchecker/__main__.py index 088b79e7..0bf0ce39 100755 --- a/nvchecker/__main__.py +++ b/nvchecker/__main__.py @@ -86,7 +86,10 @@ def main() -> None: newvers, has_failures = asyncio.get_event_loop().run_until_complete(run(result_coro, runner_coro)) if options.ver_files is not None: - core.write_verfile(options.ver_files[1], newvers) + newverf = options.ver_files[1] + vers = core.read_verfile(newverf) + vers.update(newvers) + core.write_verfile(newverf, vers) if args.failures and has_failures: sys.exit(3)