| Index: build/android/gn/zip.py
|
| diff --git a/build/android/gn/zip.py b/build/android/gn/zip.py
|
| index 5050ea07107d0afdcdfd273728447a614b4b5603..b80e0a1e4c582cb09c3c4dee8152f1b27391b502 100755
|
| --- a/build/android/gn/zip.py
|
| +++ b/build/android/gn/zip.py
|
| @@ -11,16 +11,10 @@ import ast
|
| import optparse
|
| import os
|
| import sys
|
| -import zipfile
|
|
|
| sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, 'gyp'))
|
| from util import build_utils
|
|
|
| -def DoZip(inputs, output, base_dir):
|
| - with zipfile.ZipFile(output, 'w') as outfile:
|
| - for f in inputs:
|
| - outfile.write(f, os.path.relpath(f, base_dir))
|
| -
|
| def main():
|
| parser = optparse.OptionParser()
|
| build_utils.AddDepfileOption(parser)
|
| @@ -37,7 +31,7 @@ def main():
|
| output = options.output
|
| base_dir = options.base_dir
|
|
|
| - DoZip(inputs, output, base_dir)
|
| + build_utils.DoZip(inputs, output, base_dir)
|
|
|
| if options.depfile:
|
| build_utils.WriteDepfile(
|
|
|