From: Mark Hymers Date: Sun, 15 Nov 2009 17:31:18 +0000 (+0000) Subject: seek and ye shall find X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=90a5398879cba59d83b26ad1e849516bdfe14559;p=dak.git seek and ye shall find Signed-off-by: Mark Hymers --- 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)