From 5b870b50c0912822b88792cecb294a92d202381f Mon Sep 17 00:00:00 2001 From: Mike O'Connor Date: Sat, 14 Nov 2009 14:57:47 +0000 Subject: [PATCH] correctly importing file hashes now Signed-off-by: Mike O'Connor --- dak/import_new_files.py | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.39.5