mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-23 20:29:06 -05:00
fix: withhold a mister hash only beside a size
An entry that states no size has none to contradict: the hash is written as before.
This commit is contained in:
1 parent
d48e81861c
commit
4670e0442e
1 file changed
+1
-1
@@ -126,7 +126,7 @@ class Exporter(BaseExporter):
|
||||
# no file, and the entry is left as MiSTer wrote it.
|
||||
continue
|
||||
size = fe.size()
|
||||
if md5 != entry.get("hash") and not size:
|
||||
if md5 != entry.get("hash") and entry.get("size") and not size:
|
||||
# Downloader refuses an entry without an integer size
|
||||
# (db_entity.py:187) and compares it after each fetch
|
||||
# (fetch_file_worker.py:127). The old size beside the new
|
||||
|
||||
Reference in new issue
Block a user