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

Unified Diff: tools/copy_dart.py

Issue 11228055: Properly filter out platform libs. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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: tools/copy_dart.py
diff --git a/tools/copy_dart.py b/tools/copy_dart.py
index 1fd52a0067c973fea4dc3dfb3e6ee31be1964e4e..10ed4422b5cc1e343c7b62324aa2378bf70eb9c5 100755
--- a/tools/copy_dart.py
+++ b/tools/copy_dart.py
@@ -93,9 +93,6 @@ def main(outdir = None, *inputs):
seen.add(lib)
- if lib.startswith('dart:'):
- continue
-
if (dirname(dirname(lib)).endswith('dom/generated/src')
or dirname(lib).endswith('dom/src')):
continue
@@ -127,7 +124,7 @@ def main(outdir = None, *inputs):
for suffix in library.imports:
m = re.match(r'[\'"]([^\'"]+)[\'"](\s+as\s+\w+)?$', suffix)
- uri = m.group(0)
+ uri = m.group(1)
if not uri.startswith('dart:'):
worklist.append(normjoin(dirname(lib), uri));
« 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