]> git.decadent.org.uk Git - dak.git/commitdiff
we're using something which understands typing now
authorMark Hymers <mhy@debian.org>
Fri, 20 Mar 2009 21:47:28 +0000 (21:47 +0000)
committerMark Hymers <mhy@debian.org>
Fri, 20 Mar 2009 21:47:28 +0000 (21:47 +0000)
Signed-off-by: Mark Hymers <mhy@debian.org>
daklib/dbconn.py

index 60f0cd3ed3cfeb14e2b317ceeb6891dc706dcde1..b532c351ac050d22ccd5434100058d520a7f04a0 100755 (executable)
@@ -398,7 +398,7 @@ class DBConn(Singleton):
             else:
                 row = cursor.fetchone()
 
-                if row[1] != size or row[2] != md5sum:
+                if row[1] != int(size) or row[2] != md5sum:
                     res =  -2
 
                 else: