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

Unified Diff: utils/pub/system_cache.dart

Issue 10928071: Pub: fix the 'system_cache' library (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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: utils/pub/system_cache.dart
diff --git a/utils/pub/system_cache.dart b/utils/pub/system_cache.dart
index fd9035417ebe4c31d0d3fc26370dca3735c332b8..24db19de99a9be705a71f6f3d48043af228b7414 100644
--- a/utils/pub/system_cache.dart
+++ b/utils/pub/system_cache.dart
@@ -9,6 +9,7 @@
#import('source.dart');
#import('source_registry.dart');
#import('utils.dart');
+#import('version.dart');
/**
* The system-wide cache of installed packages.
@@ -60,7 +61,7 @@ class SystemCache {
// 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, Version.none));
+ new PackageId(source, Version.none, basename(subpath)));
});
});
return Futures.wait(sources).transform(flatten);
« 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