| Index: utils/pub/source.dart
|
| ===================================================================
|
| --- utils/pub/source.dart (revision 19938)
|
| +++ utils/pub/source.dart (working copy)
|
| @@ -215,6 +215,11 @@
|
| ///
|
| /// By default, this just returns [id].
|
| Future<PackageId> resolveId(PackageId id) => new Future.immediate(id);
|
| +
|
| + /// Returns the [Package]s that have been installed in the system cache.
|
| + Future<List<Package>> getCachedPackages() {
|
| + if (shouldCache) throw "Source $name must implement this.";
|
| + }
|
|
|
| /// Returns the source's name.
|
| String toString() => name;
|
|
|