pvl.hosts-import: do not warn on $ORIGIN lines
authorTero Marttila <terom@paivola.fi>
Thu, 19 Dec 2013 17:40:37 +0200
changeset 319 f56f60c2dd9b
parent 318 304f56896942
child 320 bfda3703fa0c
pvl.hosts-import: do not warn on $ORIGIN lines
bin/pvl.hosts-import
--- a/bin/pvl.hosts-import	Thu Dec 19 17:38:08 2013 +0200
+++ b/bin/pvl.hosts-import	Thu Dec 19 17:40:37 2013 +0200
@@ -132,7 +132,12 @@
             # lazy-import generated hosts on demand
             expand_generate = True,
     ) :
-        if not rr :
+        if rr :
+            pass
+        elif line.parts[0] == '$ORIGIN' :
+            # handled by ZoneLine.load
+            continue
+        else :
             log.warn("%s: skip non-rr line: %s", line, line.line)
             continue