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

Side by Side Diff: bin/cbuildbot.py

Issue 3175030: cbuildbot: fix typo (Closed) Base URL: http://src.chromium.org/git/crosutils.git
Patch Set: Created 10 years, 4 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 | « no previous file | no next file » | 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/python 1 #!/usr/bin/python
2 2
3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 import errno 7 import errno
8 import optparse 8 import optparse
9 import os 9 import os
10 import shutil 10 import shutil
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 RunCommand(['./build_packages'], cwd=cwd) 100 RunCommand(['./build_packages'], cwd=cwd)
101 101
102 def _UprevAllPackages(buildroot): 102 def _UprevAllPackages(buildroot):
103 cwd = os.path.join(buildroot, 'src', 'scripts') 103 cwd = os.path.join(buildroot, 'src', 'scripts')
104 RunCommand(['./enter_chroot.sh', '--', './cros_mark_all_as_stable', 104 RunCommand(['./enter_chroot.sh', '--', './cros_mark_all_as_stable',
105 '--tracking_branch="cros/master"'], 105 '--tracking_branch="cros/master"'],
106 cwd=cwd) 106 cwd=cwd)
107 107
108 def _UprevPackages(buildroot, revisionfile): 108 def _UprevPackages(buildroot, revisionfile):
109 revisions = None 109 revisions = None
110 if (revision_file): 110 if (revisionfile):
111 rev_file = revisionfile.open(revisionfile) 111 rev_file = revisionfile.open(revisionfile)
112 revisions = rev_file.read() 112 revisions = rev_file.read()
113 rev_file.close() 113 rev_file.close()
114 114
115 # Note: Revisions == "None" indicates a Force Build. 115 # Note: Revisions == "None" indicates a Force Build.
116 if revisions and revisions != 'None': 116 if revisions and revisions != 'None':
117 print 'CBUILDBOT - Revision list found %s' % revisions 117 print 'CBUILDBOT - Revision list found %s' % revisions
118 print 'Revision list not yet propagating to build, marking all instead' 118 print 'Revision list not yet propagating to build, marking all instead'
119 119
120 _UprevAllPackages(buildroot) 120 _UprevAllPackages(buildroot)
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 _UprevPush(buildroot) 185 _UprevPush(buildroot)
186 _UprevCleanup(buildroot) 186 _UprevCleanup(buildroot)
187 except: 187 except:
188 # something went wrong, cleanup (being paranoid) for next build 188 # something went wrong, cleanup (being paranoid) for next build
189 if clobber: 189 if clobber:
190 RunCommand(['sudo', 'rm', '-rf', buildroot], print_cmd=False) 190 RunCommand(['sudo', 'rm', '-rf', buildroot], print_cmd=False)
191 raise 191 raise
192 192
193 if __name__ == '__main__': 193 if __name__ == '__main__':
194 main() 194 main()
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698