X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fcontents.py;h=4e6ef6b0a6442b368440f6140488ca69c7bd55c5;hb=db12f65ea58c1739169373ba66386d437dfc00a4;hp=834cbccf0cc5027f99ec98433403fab8895392ee;hpb=6e015c1abee6a37d5e40d49250e61dd9c50c203b;p=dak.git diff --git a/dak/contents.py b/dak/contents.py index 834cbccf..4e6ef6b0 100755 --- a/dak/contents.py +++ b/dak/contents.py @@ -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} );