Skip to content

Commit

Permalink
Quietly exit if there's no Fuchsia SDK for the platform
Browse files Browse the repository at this point in the history
More suitable for DEPS runhooks running.

Bug: 724204
Change-Id: I105a57269b4c4f7b4b05bab80df7a4ef112bdf1f
Reviewed-on: https://chromium-review.googlesource.com/1217850
Reviewed-by: Nico Weber <thakis@chromium.org>
Commit-Queue: Scott Graham <scottmg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#590332}
  • Loading branch information
sgraham authored and Commit Bot committed Sep 11, 2018
1 parent 80ec8e2 commit c3dc46d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build/fuchsia/update_sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ def main():
print >>sys.stderr, 'usage: %s' % sys.argv[0]
return 1

# Quietly exit if there's no SDK support for this platform.
try:
GetHostOsFromPlatform()
except:
return 0

# Previously SDK was unpacked in //third_party/fuchsia-sdk instead of
# //third_party/fuchsia-sdk/sdk . Remove the old files if they are still
# there.
Expand Down

0 comments on commit c3dc46d

Please sign in to comment.