]> git.decadent.org.uk Git - dak.git/commitdiff
only look in queues which exist
authorMark Hymers <mhy@debian.org>
Sun, 20 Sep 2009 13:10:12 +0000 (13:10 +0000)
committerMark Hymers <mhy@debian.org>
Sun, 20 Sep 2009 13:10:12 +0000 (13:10 +0000)
Signed-off-by: Mark Hymers <mhy@debian.org>
daklib/queue.py

index ae4cf0bd4f4360f982c66eb7ab7e2196236b9723..a573ab83abf840b3d8693854067e024e5c954ee6 100755 (executable)
@@ -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)