mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-12 02:00:28 +03:00
Merge branch 'apkcache_compatibility' into 'master'
Add a workaround to open apkcache created with Py2 A workaround for #163. *May* help in some rare cases, should not break anything. See merge request !120
This commit is contained in:
commit
e2ea213887
1 changed files with 1 additions and 1 deletions
|
|
@ -1208,7 +1208,7 @@ def main():
|
||||||
apkcachefile = os.path.join('tmp', 'apkcache')
|
apkcachefile = os.path.join('tmp', 'apkcache')
|
||||||
if not options.clean and os.path.exists(apkcachefile):
|
if not options.clean and os.path.exists(apkcachefile):
|
||||||
with open(apkcachefile, 'rb') as cf:
|
with open(apkcachefile, 'rb') as cf:
|
||||||
apkcache = pickle.load(cf)
|
apkcache = pickle.load(cf, encoding='utf-8')
|
||||||
else:
|
else:
|
||||||
apkcache = {}
|
apkcache = {}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue