Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1619)

Unified Diff: sky/tools/deploy_sdk.py

Issue 1026863002: Fix deploy_sdk.py to error out if files are missing (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tools/deploy_sdk.py
diff --git a/sky/tools/deploy_sdk.py b/sky/tools/deploy_sdk.py
index f729e9ddb02764894f0fa1036df9a88f5c7747b3..6ba476b4c703abf6b6ca4c01b4a0fd7368493e79 100755
--- a/sky/tools/deploy_sdk.py
+++ b/sky/tools/deploy_sdk.py
@@ -55,6 +55,7 @@ def ensure_dir_exists(path):
def copy(from_root, to_root, filter_func=None):
+ assert os.path.exists(from_root), "%s does not exist!" % from_root
if os.path.isfile(from_root):
ensure_dir_exists(os.path.dirname(to_root))
shutil.copy(from_root, to_root)
@@ -166,6 +167,10 @@ def main():
copy(os.path.join(build_dir, 'gen/sky'),
sdk_path('packages/sky/lib'), gen_filter)
+ # Work around the fact that pub run doesn't work well right now.
+ copy(src_path('sky/sdk/packages/sky/bin/sky'),
+ sdk_path('packages/sky/lib/sky_tool'))
+
# Sky SDK additions:
copy_or_link(src_path('sky/engine/bindings/builtin.dart'),
sdk_path('packages/sky/sdk_additions/dart_sky_builtins.dart'))
@@ -173,6 +178,7 @@ def main():
copy_or_link(os.path.join(bindings_path, 'dart_sky.dart'),
sdk_path('packages/sky/sdk_additions/dart_sky.dart'))
+
# Mojo package, lots of overlap with gen, must be copied:
copy(src_path('mojo/public'), sdk_path('packages/mojo/lib/public'),
dart_filter)
@@ -182,7 +188,7 @@ def main():
# Mojo SDK additions:
copy_or_link(src_path('mojo/public/dart/bindings.dart'),
sdk_path('packages/mojo/sdk_additions/dart_mojo_bindings.dart'))
- copy_or_link(src_path('mojo/public/dart/dart_mojo_core.dart'),
+ copy_or_link(src_path('mojo/public/dart/core.dart'),
sdk_path('packages/mojo/sdk_additions/dart_mojo_core.dart'))
if not skip_apks:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698