]> git.decadent.org.uk Git - dak.git/commitdiff
Create some directories needed for new dak installs
authorMark Hymers <mhy@debian.org>
Fri, 7 Nov 2014 11:51:30 +0000 (11:51 +0000)
committerMark Hymers <mhy@debian.org>
Fri, 7 Nov 2014 11:51:30 +0000 (11:51 +0000)
Signed-off-by: Mark Hymers <mhy@debian.org>
dak/init_dirs.py

index 0e0d33a94ea85f8d3b573ada62a57145887c726a..347945a3e8c037ac6a0d428b5a798592e8e69a7b 100755 (executable)
@@ -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" ]: