summaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2023-03-15 12:06:24 -0400
committermorpheus65535 <[email protected]>2023-03-15 12:06:24 -0400
commit37059e7fbdeb47324d277c31adfd7d1e37b1ef1f (patch)
treeb479c73695305b01ea748323cc01838aa761555c /libs
parent7720d000de00545ffb0d0c53ec70212545ab886a (diff)
downloadbazarr-37059e7fbdeb47324d277c31adfd7d1e37b1ef1f.tar.gz
bazarr-37059e7fbdeb47324d277c31adfd7d1e37b1ef1f.zip
Fixed fcache issue when moving cache file between disks.v1.2.1-beta.4
Diffstat (limited to 'libs')
-rw-r--r--libs/fcache/posixemulation.py6
-rw-r--r--libs/version.txt2
2 files changed, 4 insertions, 4 deletions
diff --git a/libs/fcache/posixemulation.py b/libs/fcache/posixemulation.py
index 03d6982c3..b8a1c393c 100644
--- a/libs/fcache/posixemulation.py
+++ b/libs/fcache/posixemulation.py
@@ -92,13 +92,13 @@ if os.name == 'nt': # pragma: no cover
return
# Fall back to "move away and replace"
try:
- os.rename(src, dst)
+ shutil.move(src, dst)
except OSError as e:
if e.errno != errno.EEXIST:
raise
old = "%s-%08x" % (dst, random.randint(0, sys.maxint))
- os.rename(dst, old)
- os.rename(src, dst)
+ shutil.move(dst, old)
+ shutil.move(src, dst)
try:
os.unlink(old)
except Exception:
diff --git a/libs/version.txt b/libs/version.txt
index 13afd5a8e..62e337c0b 100644
--- a/libs/version.txt
+++ b/libs/version.txt
@@ -128,7 +128,7 @@ webencodings==0.5.1
# Required-by: subzero
backports.functools-lru-cache==1.6.4
-fcache==0.4.7 # https://github.com/tsroten/fcache/pull/34
+fcache==0.4.7 # https://github.com/tsroten/fcache/pull/34 and 35
json_tricks==3.16.1
tld==0.12.6 # https://github.com/barseghyanartur/tld/pull/119