mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 14:06:58 +02:00
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:
parent
969a673045
commit
4f09b96e70
@ -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) :
|
||||
|
Loading…
Reference in New Issue
Block a user