From 082e476dea381fdab797dc9429c5acee837dfb3d Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Sun, 20 Sep 2009 13:10:12 +0000 Subject: [PATCH] only look in queues which exist Signed-off-by: Mark Hymers --- daklib/queue.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daklib/queue.py b/daklib/queue.py index ae4cf0bd..a573ab83 100755 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -2068,6 +2068,8 @@ distribution.""" # TODO: Record the queues and info in the DB so we don't hardcode all this crap # Not there? Check the queue directories... for directory in [ "Accepted", "New", "Byhand", "ProposedUpdates", "OldProposedUpdates", "Embargoed", "Unembargoed" ]: + if not Cnf.has_key("Dir::Queue::%s" % (directory)): + continue in_otherdir = os.path.join(Cnf["Dir::Queue::%s" % (directory)], dsc_name) if os.path.exists(in_otherdir): in_otherdir_fh = utils.open_file(in_otherdir) -- 2.39.5