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