From: Mark Hymers Date: Fri, 7 Nov 2014 11:51:30 +0000 (+0000) Subject: Create some directories needed for new dak installs X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=03ee8e881659ee47089de4d962e17ad6965408eb;p=dak.git Create some directories needed for new dak installs Signed-off-by: Mark Hymers --- diff --git a/dak/init_dirs.py b/dak/init_dirs.py index 0e0d33a9..347945a3 100755 --- a/dak/init_dirs.py +++ b/dak/init_dirs.py @@ -110,9 +110,16 @@ def create_directories(): # Process directories from dak.conf process_tree(Cnf, "Dir") + # Hardcode creation of the unchecked directory + if Cnf.has_key("Dir::Base"): + do_dir(os.path.join(Cnf["Dir::Base"], "queue", "unchecked"), 'unchecked directory') + # Process queue directories for queue in session.query(PolicyQueue): do_dir(queue.path, '%s queue' % queue.queue_name) + # If we're doing the NEW queue, make sure it has a COMMENTS directory + if queue.queue_name == 'new': + do_dir(os.path.join(queue.path, "COMMENTS"), '%s queue comments' % queue.queue_name) for config_name in [ "Rm::LogFile", "Import-Archive::ExportDir" ]: