]> git.decadent.org.uk Git - dak.git/commitdiff
cnf.__getitem__ is not following protocol, but this is an easier fix.
authorChris Lamb <lamby@debian.org>
Thu, 29 Oct 2009 18:58:27 +0000 (18:58 +0000)
committerChris Lamb <lamby@debian.org>
Thu, 29 Oct 2009 18:58:27 +0000 (18:58 +0000)
Signed-off-by: Chris Lamb <lamby@debian.org>
daklib/queue.py

index 174c02c8a48f9c4809dd7bbeaf1673547604d875..88cc1f916049558ed63df36d2c86716613851d81 100755 (executable)
@@ -1263,7 +1263,7 @@ class Upload(object):
                 'OldProposedUpdates', 'Embargoed', 'Unembargoed')
 
             for queue in queues:
-                if 'Dir::Queue::%s' % queue not in cnf:
+                if not cnf.get('Dir::Queue::%s' % queue):
                     continue
 
                 queuefile_path = os.path.join(