| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2016 The Chromium Authors. All rights reserved. | 2 # Copyright 2016 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 Uploads or downloads third party libraries to or from google cloud storage. | 7 Uploads or downloads third party libraries to or from google cloud storage. |
| 8 |
| 9 This script will only work for Android checkouts. |
| 8 """ | 10 """ |
| 9 | 11 |
| 10 import argparse | 12 import argparse |
| 11 import logging | 13 import logging |
| 12 import os | 14 import os |
| 13 import sys | 15 import sys |
| 14 | 16 |
| 15 | 17 |
| 16 sys.path.append(os.path.abspath( | 18 sys.path.append(os.path.abspath( |
| 17 os.path.join(os.path.dirname(__file__), os.pardir))) | 19 os.path.join(os.path.dirname(__file__), os.pardir))) |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 logging.info('Skipping, not on an android checkout.') | 124 logging.info('Skipping, not on an android checkout.') |
| 123 return 0 | 125 return 0 |
| 124 | 126 |
| 125 arguments.gsutil = download_from_google_storage.Gsutil( | 127 arguments.gsutil = download_from_google_storage.Gsutil( |
| 126 download_from_google_storage.GSUTIL_DEFAULT_PATH) | 128 download_from_google_storage.GSUTIL_DEFAULT_PATH) |
| 127 return arguments.func(arguments) | 129 return arguments.func(arguments) |
| 128 | 130 |
| 129 | 131 |
| 130 if __name__ == '__main__': | 132 if __name__ == '__main__': |
| 131 sys.exit(main(sys.argv[1:])) | 133 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |