]> git.decadent.org.uk Git - dak.git/commitdiff
source should not be a list
authorLuca Falavigna <dktrkranz@debian.org>
Sat, 27 Apr 2013 11:16:51 +0000 (11:16 +0000)
committerLuca Falavigna <dktrkranz@debian.org>
Sun, 28 Apr 2013 11:19:50 +0000 (11:19 +0000)
dak/process_new.py

index 53b4bf7be608cb341dd128b78254123024c96611..84170e4bc8373d19b802b72b878afbdb93485388 100755 (executable)
@@ -64,7 +64,6 @@ from daklib.dak_exceptions import CantOpenError, AlreadyLockedError, CantGetLock
 from daklib.summarystats import SummaryStats
 from daklib.config import Config
 from daklib.policy import UploadCopy, PolicyQueueUploadHandler
-from sqlalchemy.sql import not_
 
 # Globals
 Options = None
@@ -120,7 +119,6 @@ class Priority_Completer:
 ################################################################################
 
 def claimed_overrides(upload, missing, session):
-    source = [upload.source.source]
     binaries = set([x.package for x in upload.binaries])
     suites = ('unstable','experimental')
     for m in missing:
@@ -130,7 +128,7 @@ def claimed_overrides(upload, missing, session):
         return session.query(DBBinary.package, DBSource.source).distinct(). \
                              filter(DBBinary.package.in_(binaries)). \
                              join(DBBinary.source). \
-                             filter(not_(DBSource.source.in_(source))). \
+                             filter(DBSource.source != upload.source.source). \
                              join(DBBinary.suites). \
                              filter(Suite.suite_name.in_(suites)). \
                              order_by(DBSource.source, DBBinary.package)