| OLD | NEW |
| 1 # Copyright 2014 The LUCI Authors. All rights reserved. | 1 # Copyright 2014 The LUCI Authors. All rights reserved. |
| 2 # Use of this source code is governed under the Apache License, Version 2.0 | 2 # Use of this source code is governed under the Apache License, Version 2.0 |
| 3 # that can be found in the LICENSE file. | 3 # that can be found in the LICENSE file. |
| 4 | 4 |
| 5 """Generates the swarming_bot.zip archive for the bot. | 5 """Generates the swarming_bot.zip archive for the bot. |
| 6 | 6 |
| 7 Unlike the other source files, this file can be run from ../tools/bot_archive.py | 7 Unlike the other source files, this file can be run from ../tools/bot_archive.py |
| 8 stand-alone to generate a swarming_bot.zip for local testing so it doesn't | 8 stand-alone to generate a swarming_bot.zip for local testing so it doesn't |
| 9 import anything from the AppEngine SDK. | 9 import anything from the AppEngine SDK. |
| 10 | 10 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 'bot_code/file_refresher.py', | 44 'bot_code/file_refresher.py', |
| 45 'bot_code/remote_client.py', | 45 'bot_code/remote_client.py', |
| 46 'bot_code/singleton.py', | 46 'bot_code/singleton.py', |
| 47 'bot_code/task_runner.py', | 47 'bot_code/task_runner.py', |
| 48 'client/auth.py', | 48 'client/auth.py', |
| 49 'client/cipd.py', | 49 'client/cipd.py', |
| 50 'client/isolated_format.py', | 50 'client/isolated_format.py', |
| 51 'client/isolateserver.py', | 51 'client/isolateserver.py', |
| 52 'client/run_isolated.py', | 52 'client/run_isolated.py', |
| 53 'config/__init__.py', | 53 'config/__init__.py', |
| 54 'libs/arfile/arfile.py', |
| 55 'libs/arfile/__init__.py', |
| 56 'libs/__init__.py', |
| 54 'third_party/__init__.py', | 57 'third_party/__init__.py', |
| 55 'third_party/colorama/__init__.py', | 58 'third_party/colorama/__init__.py', |
| 56 'third_party/colorama/ansi.py', | 59 'third_party/colorama/ansi.py', |
| 57 'third_party/colorama/ansitowin32.py', | 60 'third_party/colorama/ansitowin32.py', |
| 58 'third_party/colorama/initialise.py', | 61 'third_party/colorama/initialise.py', |
| 59 'third_party/colorama/win32.py', | 62 'third_party/colorama/win32.py', |
| 60 'third_party/colorama/winterm.py', | 63 'third_party/colorama/winterm.py', |
| 61 'third_party/depot_tools/__init__.py', | 64 'third_party/depot_tools/__init__.py', |
| 62 'third_party/depot_tools/fix_encoding.py', | 65 'third_party/depot_tools/fix_encoding.py', |
| 63 'third_party/depot_tools/subcommand.py', | 66 'third_party/depot_tools/subcommand.py', |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 h.update(str(len(name))) | 302 h.update(str(len(name))) |
| 300 h.update(name) | 303 h.update(name) |
| 301 h.update(str(len(content))) | 304 h.update(str(len(content))) |
| 302 h.update(content) | 305 h.update(content) |
| 303 except IOError: | 306 except IOError: |
| 304 logging.warning('Missing expected file. Hash will be invalid.') | 307 logging.warning('Missing expected file. Hash will be invalid.') |
| 305 bot_version = h.hexdigest() | 308 bot_version = h.hexdigest() |
| 306 logging.info( | 309 logging.info( |
| 307 'get_swarming_bot_version(%s) = %s', sorted(additionals), bot_version) | 310 'get_swarming_bot_version(%s) = %s', sorted(additionals), bot_version) |
| 308 return bot_version | 311 return bot_version |
| OLD | NEW |