mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
nvtake: backup oldver before overwriting
This commit is contained in:
parent
819d958461
commit
0c362d907d
1 changed files with 4 additions and 0 deletions
|
@ -30,6 +30,10 @@ def take():
|
|||
for name in args.names:
|
||||
oldvers[name] = newvers[name]
|
||||
|
||||
try:
|
||||
os.rename(s.oldver, s.oldver + '~')
|
||||
except FileNotFoundError:
|
||||
pass
|
||||
core.write_verfile(s.oldver, oldvers)
|
||||
|
||||
def cmp():
|
||||
|
|
Loading…
Add table
Reference in a new issue