Skip to content

Commit

Permalink
only save new version records with a full run
Browse files Browse the repository at this point in the history
and keep others only when `--entry` specified on cmdline.

Fixes #263.
  • Loading branch information
lilydjwg committed Apr 19, 2024
1 parent 0355af5 commit bd2b2f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nvchecker/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# MIT licensed
# Copyright (c) 2013-2024 lilydjwg <[email protected]>, et al.

__version__ = '2.14'
__version__ = '2.14.1'
8 changes: 6 additions & 2 deletions nvchecker/__main__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
# MIT licensed
# Copyright (c) 2013-2022 lilydjwg <[email protected]>, et al.
# Copyright (c) 2013-2024 lilydjwg <[email protected]>, et al.

from __future__ import annotations

Expand Down Expand Up @@ -87,7 +87,11 @@ def main() -> None:

if options.ver_files is not None:
newverf = options.ver_files[1]
vers = core.read_verfile(newverf)
if args.entry:
# don't remove other entries when only one entry is specified on cmdline
vers = core.read_verfile(newverf)
else:
vers = {}
vers.update(results)
core.write_verfile(newverf, vers)

Expand Down

0 comments on commit bd2b2f9

Please sign in to comment.