File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
- <addon id =" script.module.xbmcswift2" name =" xbmcswift2" provider-name =" Jonathan Beluch (jbel), enen92" version =" 2.5.0 " >
1
+ <addon id =" script.module.xbmcswift2" name =" xbmcswift2" provider-name =" Jonathan Beluch (jbel), enen92" version =" 2.5.1 " >
2
2
<requires >
3
3
<import addon =" xbmc.python" version =" 2.14.0" />
4
4
</requires >
Original file line number Diff line number Diff line change 1
1
CHANGES
2
2
=======
3
+ Version 2.5.1 (9/2/2020)
4
+ - Fix shutil error when moving cache file
3
5
4
6
Version 2.5.0 (4/12/2019)
5
7
-------------
Original file line number Diff line number Diff line change @@ -60,6 +60,11 @@ def sync(self):
60
60
raise
61
61
finally :
62
62
fileobj .close ()
63
+
64
+ # shutil error (SameFileError when performing copyfile)
65
+ if os .path .exists (self .filename ):
66
+ os .remove (self .filename )
67
+
63
68
shutil .move (tempname , self .filename ) # atomic commit
64
69
if self .mode is not None :
65
70
os .chmod (self .filename , self .mode )
You can’t perform that action at this time.
0 commit comments