]> git.decadent.org.uk Git - dak.git/commitdiff
dak/init_dirs.py: only create directories for active keyrings
authorAnsgar Burchardt <ansgar@debian.org>
Sat, 7 Jul 2012 18:50:24 +0000 (12:50 -0600)
committerAnsgar Burchardt <ansgar@debian.org>
Thu, 9 Aug 2012 14:46:15 +0000 (16:46 +0200)
This avoids problems if inactive keyrings in locations not writable by
the archive user are referenced.

dak/init_dirs.py

index 32c8f589b4e8e24c37741ce3716f2fe0badd5685..fd1407143f0c1e759f75845f59a430b0b3ae7bc7 100755 (executable)
@@ -131,7 +131,7 @@ def create_directories():
         process_keyring(Cnf['Dinstall::SigningPubKeyring'], secret=True)
 
     # Process public keyrings
-    for keyring in session.query(Keyring).all():
+    for keyring in session.query(Keyring).filter_by(active=True):
         process_keyring(keyring.keyring_name)
 
     # Process dists directories