mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +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
2 changed files with 7 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
# MIT licensed
|
# MIT licensed
|
||||||
# Copyright (c) 2013-2024 lilydjwg <lilydjwg@gmail.com>, et al.
|
# 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
|
#!/usr/bin/env python3
|
||||||
# MIT licensed
|
# 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
|
from __future__ import annotations
|
||||||
|
|
||||||
|
@ -87,7 +87,11 @@ def main() -> None:
|
||||||
|
|
||||||
if options.ver_files is not None:
|
if options.ver_files is not None:
|
||||||
newverf = options.ver_files[1]
|
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)
|
vers.update(results)
|
||||||
core.write_verfile(newverf, vers)
|
core.write_verfile(newverf, vers)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue