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:
Daniel Martí 2016-04-12 18:35:23 +00:00
commit e2ea213887

View file

@ -1208,7 +1208,7 @@ def main():
apkcachefile = os.path.join('tmp', 'apkcache')
if not options.clean and os.path.exists(apkcachefile):
with open(apkcachefile, 'rb') as cf:
apkcache = pickle.load(cf)
apkcache = pickle.load(cf, encoding='utf-8')
else:
apkcache = {}