From: Ansgar Burchardt Date: Sun, 27 Jan 2013 12:48:23 +0000 (+0100) Subject: dak/acl.py: allow comments and empty lines X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4492566896fd8a44d9b2f98799607ac7fa941440;p=dak dak/acl.py: allow comments and empty lines --- 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)