From 9f794549c26dd1e990b459f9fe54e122be6b0c51 Mon Sep 17 00:00:00 2001 From: "robweberjr@gmail.com" Date: Mon, 31 Mar 2014 12:40:00 -0500 Subject: [PATCH] fixed backup rotation error - fix from Gotham branch --- addon.xml | 2 +- changelog.txt | 4 ++++ resources/lib/backup.py | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/addon.xml b/addon.xml index 5be2597..1bac4e9 100644 --- a/addon.xml +++ b/addon.xml @@ -1,6 +1,6 @@  + name="XBMC Backup" version="0.4.7" provider-name="robweber"> diff --git a/changelog.txt b/changelog.txt index 04a6c65..9b2e7dd 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,7 @@ +Version 0.4.7 + +fixed critical error in backup rotation + Version 0.4.6 modified backup folder names to include time, also modified display listing diff --git a/resources/lib/backup.py b/resources/lib/backup.py index db0ce73..ea2d90d 100644 --- a/resources/lib/backup.py +++ b/resources/lib/backup.py @@ -378,7 +378,7 @@ class XbmcBackup: self.filesTotal = self.filesTotal + remove_num + 1 #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]) utils.log("Removing backup " + dirs[remove_num][0]) self.remote_vfs.rmdir(self.remote_base_path + dirs[remove_num][0] + "/")