]> git.decadent.org.uk Git - dak.git/commitdiff
dak/generate_packages_sources2.py: remove .all() when we need the query object
authorAnsgar Burchardt <ansgar@debian.org>
Sun, 12 Aug 2012 14:30:25 +0000 (16:30 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Sun, 12 Aug 2012 14:30:25 +0000 (16:30 +0200)
dak/generate_packages_sources2.py

index 0d78d2d0be1498ebbacc2deae90bbaea54f62a05..478aadf1748b27dce30807784a033047f5f0c7da 100755 (executable)
@@ -346,7 +346,7 @@ def main():
                 print "I: Cannot find suite %s" % s
                 logger.log(['Cannot find suite %s' % s])
     else:
-        query = session.query(Suite).filter(Suite.untouchable == False).all()
+        query = session.query(Suite).filter(Suite.untouchable == False)
         if 'Archive' in Options:
             query = query.join(Suite.archive).filter(Archive.archive_name==Options['Archive'])
         suites = query.all()