From ab58bad73376ccc69685fcb731916ac03edadc68 Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Fri, 29 Jul 2011 10:29:52 +0100 Subject: [PATCH] Remove use of ::Queue:: in the import_known_changes Signed-off-by: Mark Hymers --- dak/import_known_changes.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/dak/import_known_changes.py b/dak/import_known_changes.py index b3f8e8a8..5d666b6b 100755 --- a/dak/import_known_changes.py +++ b/dak/import_known_changes.py @@ -200,8 +200,18 @@ class ChangesGenerator(threading.Thread): def run(self): cnf = Config() count = 1 - for directory in [ "Byhand", "Done", "New", "ProposedUpdates", "OldProposedUpdates" ]: - checkdir = cnf["Dir::Queue::%s" % (directory) ] + + dirs = [] + dirs.append(cnf['Dir::Done']) + + for queue_name in [ "byhand", "new", "proposedupdates", "oldproposedupdates" ]: + queue = get_policy_queue(queue_name) + if queue: + dirs.append(os.path.abspath(queue.path)) + else: + utils.warn("Could not find queue %s in database" % queue_name) + + for checkdir in dirs if os.path.exists(checkdir): print "Looking into %s" % (checkdir) -- 2.39.5