[buildinfo.debian.net] 02/35: actually hash submitted buildinfo

Chris Lamb chris at chris-lamb.co.uk
Thu Nov 3 19:02:23 UTC 2016


This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch master
in repository buildinfo.debian.net.

commit 97a5d4f02c2521765e4bf29d0fd59c614e89a934
Author: HW42 <hw42 at ipsumj.de>
Date:   Sat Oct 22 20:01:16 2016 +0200

    actually hash submitted buildinfo
---
 bidb/api/utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bidb/api/utils.py b/bidb/api/utils.py
index a8fd4a2..1890536 100644
--- a/bidb/api/utils.py
+++ b/bidb/api/utils.py
@@ -35,7 +35,7 @@ def parse_submission(request):
         except (KeyError, IndexError):
             raise InvalidBuildinfo("Could not determine GPG uid")
 
-    sha1 = hashlib.sha1().hexdigest()
+    sha1 = hashlib.sha1(raw_text_gpg_stripped.encode('utf-8')).hexdigest()
     try:
         submission = Buildinfo.objects.get(sha1=sha1).submissions.create(
             uid=uid,

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/buildinfo.debian.net.git



More information about the Reproducible-commits mailing list