aboutsummaryrefslogtreecommitdiff
path: root/remote_gcc_build.py
diff options
context:
space:
mode:
authorYunlian Jiang <yunlian@google.com>2013-04-03 11:52:09 -0700
committerChromeBot <chrome-bot@google.com>2013-04-03 14:14:11 -0700
commit2c4b2a1fb608ec840126e693faecb390e95356b2 (patch)
tree7b185772c590eafa60b6e9ee86834c300ded34f2 /remote_gcc_build.py
parent914453283a27a89838730b037cd380e318279d5b (diff)
downloadtoolchain-utils-2c4b2a1fb608ec840126e693faecb390e95356b2.tar.gz
Handle the case where the branch is not there yet.
BUG=None TEST=None Change-Id: I3e7e92d049d6587b0695e8b3f2a525eb063dbc5f Reviewed-on: https://gerrit-int.chromium.org/35005 Reviewed-by: Luis Lozano <llozano@chromium.org> Commit-Queue: Yunlian Jiang <yunlian@google.com> Tested-by: Yunlian Jiang <yunlian@google.com>
Diffstat (limited to 'remote_gcc_build.py')
-rwxr-xr-xremote_gcc_build.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/remote_gcc_build.py b/remote_gcc_build.py
index a72e20d0..80ce0c5a 100755
--- a/remote_gcc_build.py
+++ b/remote_gcc_build.py
@@ -1,6 +1,8 @@
#!/usr/bin/python
-#
-# Copyright 2012 Google Inc. All Rights Reserved.
+
+# Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
"""Script to use remote try-bot build image with local gcc."""
@@ -288,8 +290,7 @@ def GetGccBranch(branch):
if not out:
GccBranchForToolchain(branch)
if not out:
- logger.GetLogger.LogFatal("The branch/version ${0} "
- "is not a valid one".format(branch))
+ out = "remotes/m/master"
new_branch = out.splitlines()[0]
return new_branch