aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2017-06-08 23:13:06 -0400
committerRob Austein <sra@hactrn.net>2017-06-08 23:13:06 -0400
commit95ca2a828316b5350325d9c4bf33b0e2085ff360 (patch)
treebfe5ab975063c881c63f2b553f575eb4902afd6b
parentb10e95b81bb50fa7f32cf18c7baec3c27c1f8df2 (diff)
Clean up MANIFEST commit data.
-rwxr-xr-xscripts/build-firmware-package.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/build-firmware-package.py b/scripts/build-firmware-package.py
index c44b8bd..76000e6 100755
--- a/scripts/build-firmware-package.py
+++ b/scripts/build-firmware-package.py
@@ -16,7 +16,8 @@ args = parser.parse_args()
tar = tarfile.TarFile.open(fileobj = args.tarfile, mode = "w|gz")
head = subprocess.check_output(("git", "rev-parse", "HEAD")).strip()
time = subprocess.check_output(("git", "show", "-s", "--format=%ct", "HEAD")).strip()
-commits = [line.split() for line in subprocess.check_output(("git", "submodule", "status")).splitlines()]
+commits = dict((path, hash) for hash, path, branch in
+ (line.split() for line in subprocess.check_output(("git", "submodule", "status")).splitlines()))
sha256 = {}
for fn in args.firmware: