From 90a5398879cba59d83b26ad1e849516bdfe14559 Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Sun, 15 Nov 2009 17:31:18 +0000 Subject: [PATCH] seek and ye shall find Signed-off-by: Mark Hymers --- dak/import_new_files.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dak/import_new_files.py b/dak/import_new_files.py index 6cae2f0c..2e357286 100755 --- a/dak/import_new_files.py +++ b/dak/import_new_files.py @@ -96,12 +96,14 @@ class ImportNewFiles(object): cpf.sha1sum = u.pkg.files[chg_fn]['sha1sum'] else: log.warning("Having to generate sha1sum for %s" % chg_fn) + f.seek(0) cpf.sha1sum = apt_pkg.sha1sum(f) if u.pkg.files[chg_fn].has_key('sha256sum'): cpf.sha256sum = u.pkg.files[chg_fn]['sha256sum'] else: log.warning("Having to generate sha256sum for %s" % chg_fn) + f.seek(0) cpf.sha256sum = apt_pkg.sha256sum(f) session.add(cpf) -- 2.39.5