]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-settings: Update settings-history.py to skip comments from input_file
authoralexandre.roux <alexandre.roux@open-xchange.com>
Tue, 18 Nov 2025 08:24:40 +0000 (17:24 +0900)
committeralexandre.roux <alexandre.roux@open-xchange.com>
Thu, 11 Dec 2025 09:22:07 +0000 (09:22 +0000)
src/lib-settings/settings-history.py

index e7be170a7ff8c2b6a3d2275dfa141e6b4cc3a658..4e689e5d7a1dc85f4445ecc2be7421d235438bae 100755 (executable)
@@ -107,6 +107,9 @@ def process(input_file: str, contents: str, pro: bool) -> (str, str):
         line = line + 1
         values = data.split("\t")
 
+        if data.startswith("#") or data.isspace() or data == "":
+            continue
+
         if len(values) != 5:
             die(
                 f"{input_file}:{line}: "