]> err.no Git - dak/commitdiff
dak/acl.py: allow comments and empty lines
authorAnsgar Burchardt <ansgar@debian.org>
Sun, 27 Jan 2013 12:48:23 +0000 (13:48 +0100)
committerAnsgar Burchardt <ansgar@debian.org>
Sun, 27 Jan 2013 12:48:23 +0000 (13:48 +0100)
dak/acl.py

index 397bf9c11a4e554220fbd073d60723823aa76edf..10a6372946177ecc6f113ed3c44a1f24eea75750 100644 (file)
@@ -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)