From 03ee8e881659ee47089de4d962e17ad6965408eb Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Fri, 7 Nov 2014 11:51:30 +0000 Subject: [PATCH] Create some directories needed for new dak installs Signed-off-by: Mark Hymers --- dak/init_dirs.py | 7 +++++++ 1 file changed, 7 insertions(+) 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" ]: -- 2.39.2