Chromium Code Reviews| Index: chrome/installer/mini_installer/generate_next_version_mini_installer.py |
| diff --git a/chrome/installer/mini_installer/generate_next_version_mini_installer.py b/chrome/installer/mini_installer/generate_next_version_mini_installer.py |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..1f8022f61ce33bd00a941fe8de6bde2a9662a4fc |
| --- /dev/null |
| +++ b/chrome/installer/mini_installer/generate_next_version_mini_installer.py |
| @@ -0,0 +1,26 @@ |
| +# Copyright 2016 The Chromium Authors. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| + |
| +"""Generates a mini_installer with a higher version than an existing one.""" |
| + |
| +import optparse |
|
zmin
2016/04/26 19:54:58
Because optparse is deprecated in 2.7(https://docs
grt (UTC plus 2)
2016/04/26 20:41:10
https://crrev.com/220396! :-)
argparse is indeed
fdoray
2016/04/27 15:35:39
Done.
|
| +import subprocess |
| +import sys |
| + |
| + |
| +def main(): |
| + parser = optparse.OptionParser() |
| + parser.add_option('--out', help='Path to the generated mini_installer.') |
| + options, args = parser.parse_args() |
| + assert not args |
| + |
| + return subprocess.call([ |
| + 'alternate_version_generator.exe', |
| + '--force', |
| + '--out=' + options.out, |
| + ]) |
| + |
| + |
| +if '__main__' == __name__: |
| + sys.exit(main()) |