Commit 94dc89e6 authored by Aidan Wolter's avatar Aidan Wolter Committed by Commit Bot

[Fuchsia] Move Fuchsia SDK download URL to named constant

This will make it easier to modify the sdk path in the future.

Bug: None
Test: CQ
Change-Id: Ib93dbbb45b93b4795d158483d68496d520519a14
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2088735
Commit-Queue: Aidan Wolter <awolter@chromium.org>
Reviewed-by: default avatarKevin Marshall <kmarshall@chromium.org>
Reviewed-by: default avatarWez <wez@chromium.org>
Cr-Commit-Position: refs/heads/master@{#747404}
parent d0889865
......@@ -25,6 +25,9 @@ import find_depot_tools
SDK_SIGNATURE_FILE = '.hash'
EXTRA_SDK_HASH_PREFIX = ''
SDK_TARBALL_PATH_TEMPLATE = (
'gs://fuchsia/development/{sdk_hash}/sdk/{platform}-amd64/gn.tar.gz')
def GetSdkGeneration(hash):
if not hash:
......@@ -75,7 +78,7 @@ def GetSdkHashForPlatform():
def GetSdkTarballForPlatformAndHash(sdk_hash):
return 'gs://fuchsia/development/{sdk_hash}/sdk/{platform}-amd64/gn.tar.gz'.format(
return SDK_TARBALL_PATH_TEMPLATE.format(
sdk_hash=sdk_hash, platform=GetHostOsFromPlatform())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment