]> git.decadent.org.uk Git - dak.git/commitdiff
filter on active keyrings only
authorMark Hymers <mhy@debian.org>
Thu, 24 Mar 2011 10:56:14 +0000 (10:56 +0000)
committerMark Hymers <mhy@debian.org>
Thu, 24 Mar 2011 10:56:14 +0000 (10:56 +0000)
Signed-off-by: Mark Hymers <mhy@debian.org>
daklib/utils.py

index c0a3bdff2936333d87385f473f4b031df08de180..707d3b85bd4564a8262b9b4e8f00ab8ad0ac2490 100755 (executable)
@@ -1336,7 +1336,7 @@ def check_signature (sig_filename, data_filename="", keyrings=None, autofetch=No
         return (None, rejects)
 
     if not keyrings:
-        keyrings = [ x.keyring_name for x in DBConn().session().query(Keyring).all() ]
+        keyrings = [ x.keyring_name for x in DBConn().session().query(Keyring).filter(Keyring.active == True).all() ]
 
     # Autofetch the signing key if that's enabled
     if autofetch == None: