From 4670e0442efc41abedce957886a65dc56bf7daf0 Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Wed, 21 Oct 2026 05:13:46 +0200 Subject: [PATCH] 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. --- scripts/exporter/misterfpga_exporter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/exporter/misterfpga_exporter.py b/scripts/exporter/misterfpga_exporter.py index 79de82d7..1567df50 100644 --- a/scripts/exporter/misterfpga_exporter.py +++ b/scripts/exporter/misterfpga_exporter.py @@ -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