Skip to content

Commit

Permalink
fix: #255
Browse files Browse the repository at this point in the history
this ensures the newver file keeps untouched records
  • Loading branch information
blaggacao authored and lilydjwg committed Mar 11, 2024
1 parent 71af793 commit 887665d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nvchecker/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 887665d

Please sign in to comment.