mirror of
https://github.com/lilydjwg/nvchecker
synced 2025-02-26 07:21:25 +00:00
nvtake: clean up old records from oldver file on saving
This commit is contained in:
parent
4833135f87
commit
eaac776a90
@ -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…
Reference in New Issue
Block a user