Correction d'un autre bug dans updatehash.py (les hash n'étaient pas transmis correctement à travers le programme).

This commit is contained in:
Georges Dupéron 2011-09-04 12:02:36 +02:00
parent 70e50b183d
commit e4c665be6e

View File

@ -44,8 +44,8 @@ def update(connection,cursor,path):
cfi = cacheFileInfo(cursor,fpath)
if fi != cfi:
print " updating", fpath
md5,sha1 = checksumFile(fpath)
values = ('no tag',timestamp,fpath,md5,sha1,fi['mtime'],fi['size'])
sums = checksumFile(fpath)
values = ('no tag',timestamp,fpath,sums['md5'],sums['sha1'],fi['mtime'],fi['size'])
cursor.execute("insert or replace into files(tag,timestamp,path,md5,sha1,mtime,size) values(?,?,?,?,?,?,?)", values)
currentTime = time.clock()