aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-06-22 13:25:54 -0400
committerRob Austein <sra@hactrn.net>2016-06-22 13:25:54 -0400
commit8129748a055a8f3c1224fdb12c6c6bfbf558f5f3 (patch)
tree4b04a571454313618b8e1d2cbabc54d5cff8c802
parent26fc6e2552488acba023b8f4c8c1670dbe328b0f (diff)
SHA-256 hashes in manifest should use same naming scheme as files in tarball, doh.
-rwxr-xr-xbuild-package.py2
1 files changed, 1 insertions, 1 deletions
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: