From 5dcbbeb2e69b5ad4b5cb500a34e3302f3bff8761 Mon Sep 17 00:00:00 2001 From: io Date: Mon, 15 Jan 2018 23:23:01 +0100 Subject: [PATCH] schema-check: Ignore hidden files Otherwise, the parser will croak when it comes across temporary files such as vim's .*.swp files. --- utils/schema-check/dn42-schema.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/schema-check/dn42-schema.py b/utils/schema-check/dn42-schema.py index e86a360e5..1df1108be 100755 --- a/utils/schema-check/dn42-schema.py +++ b/utils/schema-check/dn42-schema.py @@ -354,6 +354,8 @@ def __index_files(path, use_file): continue for f in files: + if f[0] == ".": + continue dom = FileDOM(os.path.join(root, f)) yield dom