]> git.ipfire.org Git - location/location-database.git/commitdiff
downloader: Skip commented lines
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 30 Jan 2018 14:01:08 +0000 (14:01 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 30 Jan 2018 14:01:08 +0000 (14:01 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tools/downloader.py

index d6d2744da01d48a89dfd48ea44911e478c57e194..47e2f341a2eda2a909bf787f42e8233d16817ea2 100644 (file)
@@ -98,6 +98,10 @@ class DownloaderContext(object):
                        # Strip line-endings
                        line = line.rstrip()
 
+                       # Skip commented lines
+                       if line.startswith("#"):
+                               continue
+
                        if line:
                                block.append(line)
                                continue