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

Unified Diff: utils/pub/system_cache.dart

Issue 10399076: Get codebase ready for actually supporting versioning. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Validate descriptions and move stuff into Entrypoint. Created 8 years, 7 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
Index: utils/pub/system_cache.dart
diff --git a/utils/pub/system_cache.dart b/utils/pub/system_cache.dart
index 8f4b5bd110e8df906b9de60d2647a12487d55463..d81c44901a6378e9b281cff768b05b7a14c1da2e 100644
--- a/utils/pub/system_cache.dart
+++ b/utils/pub/system_cache.dart
@@ -40,8 +40,10 @@ class SystemCache {
final sources = paths.map((path) {
final source = sources[basename(path)];
return listDir(path).transform((subpaths) {
+ // TODO(rnystrom): Once there are cached packages and this path is
+ // being used, figure out how version numbers should be acquired.
return subpaths.map((subpath) =>
- new PackageId(basename(subpath), source));
+ new PackageId(basename(subpath), source, Version.none));
});
});
return Futures.wait(sources).transform(flatten);
« utils/pub/pubspec.dart ('K') | « utils/pub/source.dart ('k') | utils/pub/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698