From 8553fbdec127c442401908035a7d31c76ef7dca9 Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Sat, 31 Oct 2009 14:06:38 +0000 Subject: [PATCH] check_files: Fix check for known changes files Signed-off-by: Frank Lichtenheld --- daklib/queue.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/daklib/queue.py b/daklib/queue.py index 15a83958..e1ade39e 100755 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -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 -- 2.39.5