From: Ansgar Burchardt Date: Mon, 17 Sep 2012 17:07:41 +0000 (+0200) Subject: dak/clean_queues.py: use Dir::Unchecked instead of looking for unchecked queue X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91d8f91d2dd0999610c0d5e6beaa29ebbce3cbb1;p=dak dak/clean_queues.py: use Dir::Unchecked instead of looking for unchecked queue --- diff --git a/dak/clean_queues.py b/dak/clean_queues.py index d947818c..317edbef 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)