Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 """Generates a mini_installer with a higher version than an existing one.""" | |
| 6 | |
| 7 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.
| |
| 8 import subprocess | |
| 9 import sys | |
| 10 | |
| 11 | |
| 12 def main(): | |
| 13 parser = optparse.OptionParser() | |
| 14 parser.add_option('--out', help='Path to the generated mini_installer.') | |
| 15 options, args = parser.parse_args() | |
| 16 assert not args | |
| 17 | |
| 18 return subprocess.call([ | |
| 19 'alternate_version_generator.exe', | |
| 20 '--force', | |
| 21 '--out=' + options.out, | |
| 22 ]) | |
| 23 | |
| 24 | |
| 25 if '__main__' == __name__: | |
| 26 sys.exit(main()) | |
| OLD | NEW |