gzip generates the same content for each build_projects

pull/21194/head
Muxi Yan 5 years ago
parent 9d298ccb19
commit 802368945f
  1. 2
      src/objective-c/BoringSSL-GRPC.podspec
  2. 2
      templates/src/objective-c/BoringSSL-GRPC.podspec.template

File diff suppressed because one or more lines are too long

@ -9,7 +9,7 @@
import gzip, shutil, os, base64
# TODO(mxyan): move to python3 style gzip compression when possible
with open('src/boringssl/boringssl_prefix_symbols.h', 'rb') as f_in, gzip.open('src/boringssl/boringssl_prefix_symbols.h.gz', 'wb') as f_out:
with open('src/boringssl/boringssl_prefix_symbols.h', 'rb') as f_in, gzip.GzipFile('src/boringssl/boringssl_prefix_symbols.h.gz', 'w', mtime=0.0) as f_out:
shutil.copyfileobj(f_in, f_out)
with open('src/boringssl/boringssl_prefix_symbols.h.gz', 'rb') as f_in:
prefix_gz = f_in.read()

Loading…
Cancel
Save