Skip to content

Instantly share code, notes, and snippets.

@rail
Created June 29, 2020 21:39
Show Gist options
  • Save rail/be91c15728eef26e64c93c5681c34b8f to your computer and use it in GitHub Desktop.
Save rail/be91c15728eef26e64c93c5681c34b8f to your computer and use it in GitHub Desktop.
diff --git a/testing/mozharness/scripts/release/generate-checksums.py b/testing/mozharness/scripts/release/generate-checksums.py
--- a/testing/mozharness/scripts/release/generate-checksums.py
+++ b/testing/mozharness/scripts/release/generate-checksums.py
@@ -158,17 +158,17 @@ class ChecksumsGenerator(BaseScript, Vir
else:
self.log("Using checksums format")
return checksum_files["checksums"]
pool = ThreadPool(self.config["parallelization"])
pool.map(worker, find_checksums_files())
for c in raw_checksums:
- for f, info in parse_checksums_file(c).iteritems():
+ for f, info in parse_checksums_file(c).items():
for pattern in self.config["includes"]:
if re.search(pattern, f):
if f in self.checksums:
if info == self.checksums[f]:
self.debug("Duplicate checksum for file {}"
" but the data matches;"
" continuing...".format(f))
continue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment