From 6284453684ef5fff3a55303e4bcfe339fb343a93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Manuel=20Barroso=20Galindo?= Date: Thu, 27 Nov 2025 19:58:48 +0100 Subject: [PATCH] Update validation for MiSTer INI file content --- .github/download_distribution.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/download_distribution.py b/.github/download_distribution.py index bf46f47e1..be67cafa2 100755 --- a/.github/download_distribution.py +++ b/.github/download_distribution.py @@ -849,8 +849,8 @@ def fetch_main_mister_file_from_commit(commit_sha, file_path) -> str: raise Exception(f"Error decoding {file_path}: {e}") def validate_mister_ini(content): - if not content.strip().startswith('[MiSTer]'): - raise Exception("Fetched file does not start with [MiSTer] section") + if '[mister]' not in content.lower(): + raise Exception("Fetched file does not contain [MiSTer] section") if len(content) < 100: raise Exception(f"File too small ({len(content)} bytes) - likely corrupted")