[Cryptech-Commits] [user/sra/alpha-releng/firmware] branch master updated: SHA-256 hashes in manifest should use same naming scheme as files in tarball, doh.

git at cryptech.is git at cryptech.is
Wed Jun 22 19:39:09 UTC 2016


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

sra at hactrn.net pushed a commit to branch master
in repository user/sra/alpha-releng/firmware.

The following commit(s) were added to refs/heads/master by this push:
       new  8129748   SHA-256 hashes in manifest should use same naming scheme as files in tarball, doh.
8129748 is described below

commit 8129748a055a8f3c1224fdb12c6c6bfbf558f5f3
Author: Rob Austein <sra at hactrn.net>
AuthorDate: Wed Jun 22 13:25:54 2016 -0400

    SHA-256 hashes in manifest should use same naming scheme as files in tarball, doh.
---
 build-package.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build-package.py b/build-package.py
index 17932a3..0df116b 100755
--- a/build-package.py
+++ b/build-package.py
@@ -21,7 +21,7 @@ sha256  = {}
 
 for fn in args.firmware:
     with open(fn, "rb") as f:
-        sha256[fn] = hashlib.sha256(f.read()).hexdigest()
+        sha256[os.path.basename(fn)] = hashlib.sha256(f.read()).hexdigest()
     tar.add(fn, os.path.basename(fn))
 
 with tempfile.NamedTemporaryFile() as f:

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Commits mailing list