respect the test mode when wanting to delete the COMPLETE file (oops)
This commit is contained in:
parent
7b14ba9488
commit
2b5b57b888
1 changed files with 10 additions and 4 deletions
|
@ -285,6 +285,9 @@ def main():
|
||||||
key.delete()
|
key.delete()
|
||||||
sys.stdout.write('.')
|
sys.stdout.write('.')
|
||||||
if backups[backupnum]['finalkey']:
|
if backups[backupnum]['finalkey']:
|
||||||
|
if options.test:
|
||||||
|
sys.stdout.write('X')
|
||||||
|
else:
|
||||||
backups[backupnum]['finalkey'].delete()
|
backups[backupnum]['finalkey'].delete()
|
||||||
sys.stdout.write('!')
|
sys.stdout.write('!')
|
||||||
sys.stdout.write('\n')
|
sys.stdout.write('\n')
|
||||||
|
@ -316,6 +319,9 @@ def main():
|
||||||
key.delete()
|
key.delete()
|
||||||
sys.stdout.write('.')
|
sys.stdout.write('.')
|
||||||
if toast['finalkey']:
|
if toast['finalkey']:
|
||||||
|
if options.test:
|
||||||
|
sys.stdout.write('X')
|
||||||
|
else:
|
||||||
toast['finalkey'].delete()
|
toast['finalkey'].delete()
|
||||||
sys.stdout.write('!')
|
sys.stdout.write('!')
|
||||||
sys.stdout.write('\n')
|
sys.stdout.write('\n')
|
||||||
|
|
Loading…
Reference in a new issue