Bug 1400354 - Fix JarWriter usage; r?ted
The API got refactored recently. It looks like we missed a caller.
The script was broken.
MozReview-Commit-ID: ELFfy4n00TF
--- a/build/windows_toolchain.py
+++ b/build/windows_toolchain.py
@@ -196,17 +196,17 @@ def format_manifest(manifest):
return b'\n'.join(sha256_lines)
def write_zip(zip_path, prefix=None):
"""Write toolchain data to a zip file."""
if isinstance(prefix, unicode):
prefix = prefix.encode('utf-8')
- with JarWriter(file=zip_path, optimize=False, compress=5) as zip:
+ with JarWriter(file=zip_path, optimize=False, compress_level=5) as zip:
manifest = {}
for p, data, mode in resolve_files_and_hash(manifest):
print(p)
if prefix:
p = mozpath.join(prefix, p)
zip.add(p, data, mode=mode)