From: Ansgar Burchardt Date: Sat, 7 Jul 2012 18:50:24 +0000 (-0600) Subject: dak/init_dirs.py: only create directories for active keyrings X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=9427ebbb129f023f065c1ad34290ce74f9f8b83b;p=dak.git dak/init_dirs.py: only create directories for active keyrings This avoids problems if inactive keyrings in locations not writable by the archive user are referenced. --- diff --git a/dak/init_dirs.py b/dak/init_dirs.py index 32c8f589..fd140714 100755 --- a/dak/init_dirs.py +++ b/dak/init_dirs.py @@ -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