[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] Create some directories needed for new dak installs



Signed-off-by: Mark Hymers <mhy@debian.org>
---
 dak/init_dirs.py |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/dak/init_dirs.py b/dak/init_dirs.py
index 0e0d33a..347945a 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" ]:
-- 
1.7.10.4


Reply to: