don't send old backups to the trash (#912)

This commit is contained in:
Damien Elmes 2013-07-03 03:41:41 +09:00
parent 157b402495
commit 2047e5c93c

View File

@ -328,7 +328,7 @@ the manual for information on how to restore from an automatic backup."))
delete = len(backups) + 1 - nbacks delete = len(backups) + 1 - nbacks
delete = backups[:delete] delete = backups[:delete]
for file in delete: for file in delete:
send2trash(os.path.join(dir, file[1])) os.unlink(os.path.join(dir, file[1]))
def maybeOptimize(self): def maybeOptimize(self):
# have two weeks passed? # have two weeks passed?