From 4492566896fd8a44d9b2f98799607ac7fa941440 Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Sun, 27 Jan 2013 13:48:23 +0100 Subject: [PATCH] dak/acl.py: allow comments and empty lines --- dak/acl.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dak/acl.py b/dak/acl.py index 397bf9c1..10a63729 100644 --- a/dak/acl.py +++ b/dak/acl.py @@ -77,6 +77,9 @@ def acl_set_fingerprints(acl_name, entries): acl.fingerprints.clear() for entry in entries: entry = entry.strip() + if entry.startswith('#') or len(entry) == 0: + continue + fps = get_fingerprint(entry, session) if len(fps) == 0: print "Unknown key for '{0}'".format(entry) -- 2.39.5