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

Side by Side Diff: scripts/slave/recipe_modules/bot_update/resources/bot_update.py

Issue 1151423002: Move recipe engine to third_party/recipe_engine. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Copyright notices Created 5 years, 7 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 | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2014 The Chromium Authors. All rights reserved. 2 # Copyright 2014 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 # TODO(hinoka): Use logging. 6 # TODO(hinoka): Use logging.
7 7
8 import cStringIO 8 import cStringIO
9 import codecs 9 import codecs
10 import collections 10 import collections
(...skipping 19 matching lines...) Expand all
30 BUF_SIZE = 256 30 BUF_SIZE = 256
31 31
32 # Define a bunch of directory paths. 32 # Define a bunch of directory paths.
33 # Relative to the current working directory. 33 # Relative to the current working directory.
34 CURRENT_DIR = path.abspath(os.getcwd()) 34 CURRENT_DIR = path.abspath(os.getcwd())
35 BUILDER_DIR = path.dirname(CURRENT_DIR) 35 BUILDER_DIR = path.dirname(CURRENT_DIR)
36 SLAVE_DIR = path.dirname(BUILDER_DIR) 36 SLAVE_DIR = path.dirname(BUILDER_DIR)
37 37
38 # Relative to this script's filesystem path. 38 # Relative to this script's filesystem path.
39 THIS_DIR = path.dirname(path.abspath(__file__)) 39 THIS_DIR = path.dirname(path.abspath(__file__))
40 SCRIPTS_DIR = path.dirname(THIS_DIR) 40 SCRIPTS_DIR = path.dirname(path.dirname(path.dirname(path.dirname(THIS_DIR))))
41 BUILD_DIR = path.dirname(SCRIPTS_DIR) 41 BUILD_DIR = path.dirname(SCRIPTS_DIR)
42 ROOT_DIR = path.dirname(BUILD_DIR) 42 ROOT_DIR = path.dirname(BUILD_DIR)
43 BUILD_INTERNAL_DIR = path.join(ROOT_DIR, 'build_internal') 43 BUILD_INTERNAL_DIR = path.join(ROOT_DIR, 'build_internal')
44 DEPOT_TOOLS_DIR = path.join(ROOT_DIR, 'depot_tools') 44 DEPOT_TOOLS_DIR = path.join(ROOT_DIR, 'depot_tools')
45 45
46 46
47 CHROMIUM_GIT_HOST = 'https://chromium.googlesource.com' 47 CHROMIUM_GIT_HOST = 'https://chromium.googlesource.com'
48 CHROMIUM_SRC_URL = CHROMIUM_GIT_HOST + '/chromium/src.git' 48 CHROMIUM_SRC_URL = CHROMIUM_GIT_HOST + '/chromium/src.git'
49 49
50 # Official builds use buildspecs, so this is a special case. 50 # Official builds use buildspecs, so this is a special case.
(...skipping 1644 matching lines...) Expand 10 before | Expand all | Expand 10 after
1695 except Exception: 1695 except Exception:
1696 # Unexpected failure. 1696 # Unexpected failure.
1697 emit_flag(options.flag_file) 1697 emit_flag(options.flag_file)
1698 raise 1698 raise
1699 else: 1699 else:
1700 emit_flag(options.flag_file) 1700 emit_flag(options.flag_file)
1701 1701
1702 1702
1703 if __name__ == '__main__': 1703 if __name__ == '__main__':
1704 sys.exit(main()) 1704 sys.exit(main())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698