mirror of
https://github.com/lilydjwg/nvchecker
synced 2025-02-13 17:07:14 +00:00
only save new version records with a full run
and keep others only when `--entry` specified on cmdline. Fixes #263.
This commit is contained in:
parent
0355af5e4c
commit
bd2b2f9494
@ -1,4 +1,4 @@
|
||||
# MIT licensed
|
||||
# Copyright (c) 2013-2024 lilydjwg <lilydjwg@gmail.com>, et al.
|
||||
|
||||
__version__ = '2.14'
|
||||
__version__ = '2.14.1'
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
# MIT licensed
|
||||
# Copyright (c) 2013-2022 lilydjwg <lilydjwg@gmail.com>, et al.
|
||||
# Copyright (c) 2013-2024 lilydjwg <lilydjwg@gmail.com>, et al.
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user