diff options
-rwxr-xr-x | build-package.py | 2 |
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: |