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

Side by Side Diff: bin/cros_mark_chrome_as_stable.py

Issue 6291013: Have the ability for the PFQ to both rev Chrome and other packages. (Closed) Base URL: http://git.chromium.org/git/crosutils.git@master
Patch Set: Created 9 years, 11 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/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 """This module uprevs Chrome for cbuildbot. 7 """This module uprevs Chrome for cbuildbot.
8 8
9 After calling, it prints outs CHROME_VERSION_ATOM=(version atom string). A 9 After calling, it prints outs CHROME_VERSION_ATOM=(version atom string). A
10 caller could then use this atom with emerge to build the newly uprevved version 10 caller could then use this atom with emerge to build the newly uprevved version
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 338
339 if stable_candidate: 339 if stable_candidate:
340 Info('Stable candidate found %s' % stable_candidate) 340 Info('Stable candidate found %s' % stable_candidate)
341 else: 341 else:
342 Info('No stable candidate found.') 342 Info('No stable candidate found.')
343 343
344 os.chdir(overlay_dir) 344 os.chdir(overlay_dir)
345 work_branch = cros_mark_as_stable.GitBranch( 345 work_branch = cros_mark_as_stable.GitBranch(
346 cros_mark_as_stable.STABLE_BRANCH_NAME, options.tracking_branch) 346 cros_mark_as_stable.STABLE_BRANCH_NAME, options.tracking_branch)
347 work_branch.CreateBranch() 347 work_branch.CreateBranch()
348 try: 348 chrome_version_atom = MarkChromeEBuildAsStable(
349 chrome_version_atom = MarkChromeEBuildAsStable( 349 stable_candidate, unstable_ebuild, chrome_rev, version_to_uprev,
350 stable_candidate, unstable_ebuild, chrome_rev, version_to_uprev, 350 commit_to_use, overlay_dir, sticky_ebuild)
351 commit_to_use, overlay_dir, sticky_ebuild) 351 # Explicit print to communicate to caller.
352 # Explicit print to communicate to caller. 352 if chrome_version_atom:
353 if chrome_version_atom: 353 print 'CHROME_VERSION_ATOM=%s' % chrome_version_atom
354 print 'CHROME_VERSION_ATOM=%s' % chrome_version_atom
355 else:
356 work_branch.Delete()
357 except:
358 work_branch.Delete()
359 raise
360 354
361 355
362 if __name__ == '__main__': 356 if __name__ == '__main__':
363 main() 357 main()
OLDNEW
« no previous file with comments | « bin/cbuildbot_config.py ('k') | cros_mark_as_stable.py » ('j') | cros_mark_as_stable.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698