mirror of
https://github.com/robweber/xbmcbackup.git
synced 2024-11-14 20:35:48 +01:00
fixed backup rotation error - fix from Gotham branch
This commit is contained in:
parent
6f4de551dc
commit
9f794549c2
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
<addon id="script.xbmcbackup"
|
<addon id="script.xbmcbackup"
|
||||||
name="XBMC Backup" version="0.4.6" provider-name="robweber">
|
name="XBMC Backup" version="0.4.7" provider-name="robweber">
|
||||||
<requires>
|
<requires>
|
||||||
<import addon="xbmc.python" version="2.1.0"/>
|
<import addon="xbmc.python" version="2.1.0"/>
|
||||||
</requires>
|
</requires>
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
Version 0.4.7
|
||||||
|
|
||||||
|
fixed critical error in backup rotation
|
||||||
|
|
||||||
Version 0.4.6
|
Version 0.4.6
|
||||||
|
|
||||||
modified backup folder names to include time, also modified display listing
|
modified backup folder names to include time, also modified display listing
|
||||||
|
@ -378,7 +378,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] + "/")
|
||||||
|
Loading…
Reference in New Issue
Block a user