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

Side by Side Diff: appengine/swarming/server/bot_archive.py

Issue 1860863002: Update copyright notice from Swarming to LUCI; add AUTHORS and CONTRIBUTORS. (Closed) Base URL: git@github.com:luci/luci-py.git@master
Patch Set: . 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 unified diff | Download patch
« no previous file with comments | « appengine/swarming/server/acl.py ('k') | appengine/swarming/server/bot_code.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 # Copyright 2014 The Swarming Authors. All rights reserved. 1 # Copyright 2014 The LUCI Authors. All rights reserved.
2 # Use of this source code is governed by the Apache v2.0 license that can be 2 # Use of this source code is governed by the Apache v2.0 license that can be
3 # found in the LICENSE file. 3 # 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
11 The hash of the content of the files in the archive is used to define the 11 The hash of the content of the files in the archive is used to define the
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 h.update(str(len(name))) 294 h.update(str(len(name)))
295 h.update(name) 295 h.update(name)
296 h.update(str(len(content))) 296 h.update(str(len(content)))
297 h.update(content) 297 h.update(content)
298 except IOError: 298 except IOError:
299 logging.warning('Missing expected file. Hash will be invalid.') 299 logging.warning('Missing expected file. Hash will be invalid.')
300 bot_version = h.hexdigest() 300 bot_version = h.hexdigest()
301 logging.info( 301 logging.info(
302 'get_swarming_bot_version(%s) = %s', sorted(additionals), bot_version) 302 'get_swarming_bot_version(%s) = %s', sorted(additionals), bot_version)
303 return bot_version 303 return bot_version
OLDNEW
« no previous file with comments | « appengine/swarming/server/acl.py ('k') | appengine/swarming/server/bot_code.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698