[dak/master] dak/clean_queues.py: use Dir::Unchecked instead of looking for unchecked queue
---
dak/clean_queues.py | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/dak/clean_queues.py b/dak/clean_queues.py
index d947818..317edbe 100755
--- a/dak/clean_queues.py
+++ b/dak/clean_queues.py
@@ -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)
--
1.7.2.5
Reply to: