From e600703c9440cfe5710b7382bd8f2f29cb973604 Mon Sep 17 00:00:00 2001 From: robweber Date: Fri, 2 Nov 2012 15:24:45 -0500 Subject: [PATCH 1/2] fixes #20 --- resources/lib/backup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/lib/backup.py b/resources/lib/backup.py index a66b531..f66ab53 100644 --- a/resources/lib/backup.py +++ b/resources/lib/backup.py @@ -155,6 +155,7 @@ class XbmcBackup: dirs,files = xbmcvfs.listdir(self.remote_root) if(len(dirs) > total_backups): #remove backups to equal total wanted + dirs.sort() remove_num = len(dirs) - total_backups - 1 self.filesTotal = self.filesTotal + remove_num + 1 From 847ad3a5105e3546909a0cbb74df4b4b9e042bf4 Mon Sep 17 00:00:00 2001 From: robweber Date: Fri, 2 Nov 2012 15:27:59 -0500 Subject: [PATCH 2/2] version bump --- addon.xml | 2 +- changelog.txt | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/addon.xml b/addon.xml index d8da8c6..84ebc67 100644 --- a/addon.xml +++ b/addon.xml @@ -1,6 +1,6 @@  + name="XBMC Backup" version="0.2.2" provider-name="robweber"> diff --git a/changelog.txt b/changelog.txt index 78eb4b0..0b21115 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,7 @@ +[b]Version 0.2.2[/b] + +fix for backup rotation sort + [b]Version 0.2.1[/b] added ability to rotate backups, keeping a set number of days