]> git.ipfire.org Git - location/libloc.git/commitdiff
importer: Ignore comments in Geofeeds
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 6 Mar 2024 23:47:25 +0000 (23:47 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 6 Mar 2024 23:47:25 +0000 (23:47 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/scripts/location-importer.in

index 63d682de08cde65bce56935a925d787e7d48f87b..cc2e5e2ffb1dfb98e4372f33db80812ca6112fc3 100644 (file)
@@ -1736,6 +1736,10 @@ class CLI(object):
                                        if not line:
                                                continue
 
+                                       # Skip comments
+                                       elif line.startswith("#"):
+                                               continue
+
                                        # Try to parse the line
                                        try:
                                                fields = line.split(",", 5)