From: Mike O'Connor Date: Sat, 14 Nov 2009 14:57:47 +0000 (+0000) Subject: correctly importing file hashes now X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b870b50c0912822b88792cecb294a92d202381f;p=dak correctly importing file hashes now Signed-off-by: Mike O'Connor --- diff --git a/dak/import_new_files.py b/dak/import_new_files.py index ff49e6c3..253e656d 100755 --- a/dak/import_new_files.py +++ b/dak/import_new_files.py @@ -72,6 +72,7 @@ class ImportNewFiles(object): u = Upload() success = u.load_changes(changes_fn) u.pkg.changes_file = changes_bn + u.check_hashes() if not chg: chg = u.pkg.add_known_changes(newq.path, newq.policy_queue_id, session) @@ -89,6 +90,8 @@ class ImportNewFiles(object): cpf.filename = chg_fn cpf.size = u.pkg.files[chg_fn]['size'] cpf.md5sum = u.pkg.files[chg_fn]['md5sum'] + cpf.sha1sum = u.pkg.files[chg_fn]['sha1sum'] + cpf.sha256sum = u.pkg.files[chg_fn]['sha256sum'] session.add(cpf) files.append(cpf)