[Cryptech-Commits] [user/sra/alpha-releng/omnibus] 06/24: SHA-256 hashes in manifest should use same naming scheme as files in tarball, doh.

git at cryptech.is git at cryptech.is
Mon Jun 27 20:38:29 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/omnibus.

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:



More information about the Commits mailing list