mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
nvtake: clean up old records from oldver file on saving
This commit is contained in:
parent
4833135f87
commit
eaac776a90
1 changed files with 3 additions and 0 deletions
|
@ -41,6 +41,9 @@ def take() -> None:
|
|||
oldvers = core.read_verfile(oldverf)
|
||||
newvers = core.read_verfile(newverf)
|
||||
|
||||
for removed in set(oldvers) - set(newvers):
|
||||
del oldvers[removed]
|
||||
|
||||
if args.all:
|
||||
oldvers.update(newvers)
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue