]> git.decadent.org.uk Git - dak.git/commitdiff
do all binaries, not just the first
authorMike O'Connor <stew@vireo.org>
Wed, 28 Oct 2009 20:21:15 +0000 (21:21 +0100)
committerMike O'Connor <stew@vireo.org>
Wed, 28 Oct 2009 20:21:15 +0000 (21:21 +0100)
Signed-off-by: Mike O'Connor <stew@vireo.org>
dak/contents.py

index 834cbccf0cc5027f99ec98433403fab8895392ee..4e6ef6b0a6442b368440f6140488ca69c7bd55c5 100755 (executable)
@@ -238,9 +238,7 @@ class Contents(object):
 
         s = DBConn().session()
 
-        #        for binary in s.query(DBBinary).all() ):
-        binary = s.query(DBBinary).first()
-        if binary:
+        for binary in s.query(DBBinary).all() ):
             filename = binary.poolfile.filename
              # Check for existing contents
             existingq = s.execute( "select 1 from bin_contents where binary_id=:id", {'id':binary.binary_id} );