]> git.decadent.org.uk Git - dak.git/commitdiff
sort out type problem
authorMark Hymers <mhy@debian.org>
Fri, 30 Oct 2009 14:23:10 +0000 (14:23 +0000)
committerMark Hymers <mhy@debian.org>
Fri, 30 Oct 2009 14:23:10 +0000 (14:23 +0000)
Signed-off-by: Mark Hymers <mhy@debian.org>
daklib/dbconn.py

index 75d271bd39d1cbff799fa9b02d68cfa8345b6f5d..9fd1fbd80c4d7ca5cbb28a6d1f57d6288450ac12 100755 (executable)
@@ -769,7 +769,7 @@ def check_poolfile(filename, filesize, md5sum, location_id, session=None):
         ret = (False, None)
     else:
         obj = q.one()
-        if obj.md5sum != md5sum or obj.filesize != filesize:
+        if obj.md5sum != md5sum or obj.filesize != int(filesize):
             ret = (False, obj)
 
     if ret is None: