Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Unified Diff: chrome/installer/mini_installer/generate_next_version_mini_installer.py

Issue 1902233003: Add next_version_mini_installer target. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: self review Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/installer/mini_installer/BUILD.gn ('k') | chrome/installer/test/alternate_version_generator_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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())
« no previous file with comments | « chrome/installer/mini_installer/BUILD.gn ('k') | chrome/installer/test/alternate_version_generator_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698