Use release candidates as a backup in case we fail to find the latest release.

Change-Id: Ia94f1c983aec533fc2813f9c300266d394b8ee7c

BUG=chromium-os:9946
TEST=Ran ctest and saw through the download and start of the test harness

Review URL: http://codereview.chromium.org/5628002
This commit is contained in:
Chris Sosa 2010-12-02 20:07:48 -08:00
parent 969a673045
commit 4f09b96e70

View File

@ -167,7 +167,11 @@ def GetLatestZipUrl(board, channel, latest_url_base, zip_server_base):
Warning(('Could not use latest link provided, defaulting to parsing'
' latest from zip url base.'))
return GetNewestLinkFromZipBase(board, channel, zip_server_base)
try:
return GetNewestLinkFromZipBase(board, channel, zip_server_base)
except:
Warning('Failed to get url from standard zip base. Trying rc.')
return GetNewestLinkFromZipBase(board + '-rc', channel, zip_server_base)
def GrabZipAndExtractImage(zip_url, download_folder, image_name) :