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

Side by Side Diff: build/android/play_services/update.py

Issue 1418833005: [gms updater] Fixes and tests to prepare activation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « no previous file | build/android/pylib/utils/logging_utils.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2015 The Chromium Authors. All rights reserved. 2 # Copyright 2015 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 ''' 6 '''
7 Script to help uploading and downloading the Google Play services client 7 Script to help uploading and downloading the Google Play services client
8 library to and from a Google Cloud storage. 8 library to and from a Google Cloud storage.
9 ''' 9 '''
10 10
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 default=constants.ANDROID_SDK_ROOT) 101 default=constants.ANDROID_SDK_ROOT)
102 parser_upload.add_argument('--skip-git', 102 parser_upload.add_argument('--skip-git',
103 action='store_true', 103 action='store_true',
104 help="don't commit the changes at the end") 104 help="don't commit the changes at the end")
105 parser_upload.set_defaults(func=Upload) 105 parser_upload.set_defaults(func=Upload)
106 AddCommonArguments(parser_upload) 106 AddCommonArguments(parser_upload)
107 107
108 args = parser.parse_args() 108 args = parser.parse_args()
109 if args.verbose: 109 if args.verbose:
110 logging.basicConfig(level=logging.DEBUG) 110 logging.basicConfig(level=logging.DEBUG)
111 logging_utils.ColorStreamHandler.MakeDefault() 111 logging_utils.ColorStreamHandler.MakeDefault(force_color=True)
dgn 2015/11/02 14:04:13 Works fine with runhooks locally. Need to see what
112 return args.func(args) 112 return args.func(args)
113 113
114 114
115 def AddCommonArguments(parser): 115 def AddCommonArguments(parser):
116 ''' 116 '''
117 Defines the common arguments on subparser rather than the main one. This 117 Defines the common arguments on subparser rather than the main one. This
118 allows to put arguments after the command: `foo.py upload --debug --force` 118 allows to put arguments after the command: `foo.py upload --debug --force`
119 instead of `foo.py --debug upload --force` 119 instead of `foo.py --debug upload --force`
120 ''' 120 '''
121 121
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 logging.debug('Calling command "%s"', str(args)) 447 logging.debug('Calling command "%s"', str(args))
448 return cmd_helper.GetCmdStatusOutputAndError(args) 448 return cmd_helper.GetCmdStatusOutputAndError(args)
449 449
450 def check_call(self, *args): 450 def check_call(self, *args):
451 logging.debug('Calling command "%s"', str(args)) 451 logging.debug('Calling command "%s"', str(args))
452 return cmd_helper.GetCmdStatusOutputAndError(args) 452 return cmd_helper.GetCmdStatusOutputAndError(args)
453 453
454 454
455 if __name__ == '__main__': 455 if __name__ == '__main__':
456 sys.exit(Main()) 456 sys.exit(Main())
OLDNEW
« no previous file with comments | « no previous file | build/android/pylib/utils/logging_utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698