fixed error in backup rotation

This commit is contained in:
robweberjr@gmail.com 2014-03-31 12:37:11 -05:00
parent 35c1717699
commit 290446c3a8
2 changed files with 3 additions and 1 deletions

View File

@ -2,6 +2,8 @@ Version 0.5.2
added additional script and window parameters, thanks Samu-rai added additional script and window parameters, thanks Samu-rai
critical error in backup rotation
Version 0.5.1 Version 0.5.1
updated for new Gotham xbmc python updates updated for new Gotham xbmc python updates

View File

@ -390,7 +390,7 @@ class XbmcBackup:
self.filesTotal = self.filesTotal + remove_num + 1 self.filesTotal = self.filesTotal + remove_num + 1
#update the progress bar if it is available #update the progress bar if it is available
while(remove_num < total_backups and not self._checkCancel()): while(remove_num < (len(dirs) - total_backups) and not self._checkCancel()):
self._updateProgress(utils.getString(30054) + " " + dirs[remove_num][1]) self._updateProgress(utils.getString(30054) + " " + dirs[remove_num][1])
utils.log("Removing backup " + dirs[remove_num][0]) utils.log("Removing backup " + dirs[remove_num][0])
self.remote_vfs.rmdir(self.remote_base_path + dirs[remove_num][0] + "/") self.remote_vfs.rmdir(self.remote_base_path + dirs[remove_num][0] + "/")