]> err.no Git - dak/commitdiff
dak/clean_queues.py: use Dir::Unchecked instead of looking for unchecked queue
authorAnsgar Burchardt <ansgar@debian.org>
Mon, 17 Sep 2012 17:07:41 +0000 (19:07 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Mon, 17 Sep 2012 17:07:41 +0000 (19:07 +0200)
dak/clean_queues.py

index d947818c4612fef26f4e5d0c246b1c2cc0d8a66c..317edbef0f6aad91d647ec55c5261005a965b7d1 100755 (executable)
@@ -91,12 +91,10 @@ def init (cnf):
             utils.fubar("%s must be a directory." % (del_dir))
 
     # Move to the directory to clean
-    incoming = Options["Incoming"]
-    if incoming == "":
-        incoming_queue = get_policy_queue('unchecked')
-        if not incoming_queue:
-            utils.fubar("Cannot find 'unchecked' queue")
-        incoming = incoming_queue.path
+    if not incoming:
+        incoming = cnf.get('Dir::Unchecked')
+        if not incoming:
+            utils.fubar("Cannot find 'unchecked' directory")
 
     try:
         os.chdir(incoming)