]> err.no Git - dak/commitdiff
check_files: Fix check for known changes files
authorFrank Lichtenheld <djpig@debian.org>
Sat, 31 Oct 2009 14:06:38 +0000 (14:06 +0000)
committerFrank Lichtenheld <djpig@debian.org>
Sat, 31 Oct 2009 14:06:38 +0000 (14:06 +0000)
Signed-off-by: Frank Lichtenheld <djpig@debian.org>
daklib/queue.py

index 15a8395841b35e1134f2ae06ed40ebbe8639134b..e1ade39e12a717e660cf7c5f44598b52432efedb 100755 (executable)
@@ -817,7 +817,10 @@ class Upload(object):
 
         try:
             dbc = session.query(DBChange).filter_by(changesname=base_filename).one()
-            if dbc.in_queue is not None and dbc.in_queue.queue_name != 'unchecked':
+            # if in the pool or in a queue other than unchecked, reject
+            if (dbc.in_queue is None) \
+                   or (dbc.in_queue is not None
+                       and dbc.in_queue.queue_name != 'unchecked'):
                 self.rejects.append("%s file already known to dak" % base_filename)
         except NoResultFound, e:
             # not known, good