From 2c4b2a1fb608ec840126e693faecb390e95356b2 Mon Sep 17 00:00:00 2001 From: Yunlian Jiang Date: Wed, 3 Apr 2013 11:52:09 -0700 Subject: 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 Commit-Queue: Yunlian Jiang Tested-by: Yunlian Jiang --- remote_gcc_build.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'remote_gcc_build.py') 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 -- cgit v1.2.3