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

Unified Diff: bin/cbuildbot.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: Nit 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | bin/cbuildbot_config.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/cbuildbot.py
diff --git a/bin/cbuildbot.py b/bin/cbuildbot.py
index 4d727e93fbc46c56608b57f0e92a45cd561d3dfc..954cfc3e489b1ebf62f06819781b521ea09c3db6 100755
--- a/bin/cbuildbot.py
+++ b/bin/cbuildbot.py
@@ -326,12 +326,12 @@ def _IncrementalCheckout(buildroot, retries=_DEFAULT_RETRIES):
def _MakeChroot(buildroot, replace=False):
"""Wrapper around make_chroot."""
cwd = os.path.join(buildroot, 'src', 'scripts')
-
+
cmd = ['./make_chroot', '--fast']
-
+
if replace:
cmd.append('--replace')
-
+
RunCommand(cmd, cwd=cwd)
@@ -374,7 +374,7 @@ def _Build(buildroot, emptytree, build_autotest=True, usepkg=True):
if not build_autotest:
cmd.append('--nowithautotest')
-
+
if not usepkg:
cmd.append('--nousepkg')
@@ -738,17 +738,17 @@ def main():
if not os.path.isdir(boardpath):
_SetupBoard(buildroot, board=buildconfig['board'])
- # Perform uprev. If chrome_uprev is set, rev Chrome ebuilds.
+ # Perform chrome uprev.
if options.chrome_rev:
chrome_atom_to_build = _MarkChromeAsStable(buildroot, tracking_branch,
options.chrome_rev, board)
- # If we found nothing to rev, we're done here.
- if not chrome_atom_to_build:
- return
-
- elif buildconfig['uprev']:
+ # Perform other uprevs.
+ if buildconfig['uprev']:
_UprevPackages(buildroot, tracking_branch, revisionfile,
buildconfig['board'], rev_overlays)
+ elif not chrome_atom_to_build:
+ # We found nothing to rev, we're done here.
+ return
_EnableLocalAccount(buildroot)
« no previous file with comments | « no previous file | bin/cbuildbot_config.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698