www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit e4c665be6e24726051bfa0c784cef5a8b05b536c
parent 70e50b183ded7e3fc6fd64c1a56b29cca3b280ea
Author: Georges Dupéron <jahvascriptmaniac+github@free.fr>
Date:   Sun,  4 Sep 2011 12:02:36 +0200

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

Diffstat:
Mupdatehash.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/updatehash.py b/updatehash.py @@ -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()