| Index: utils/pub/source.dart
|
| diff --git a/utils/pub/source.dart b/utils/pub/source.dart
|
| index 974f677f31dd626a90a69ca326e70a27ed583cf7..082d6a9b7a988763bf37cef688501fa19473e5c0 100644
|
| --- a/utils/pub/source.dart
|
| +++ b/utils/pub/source.dart
|
| @@ -35,16 +35,22 @@ class Source {
|
| * to true if the package was found in the source and false if it wasn't. For
|
| * all other error conditions, it should complete with an exception.
|
| *
|
| - * If [shouldCache] is true, [path] will be a path to this source's
|
| - * subdirectory of the [PackageCache]'s cache directory. If [shouldCache] is
|
| - * false, [path] will be a path to the application's "packages" directory.
|
| - *
|
| * [path] is guaranteed not to exist, and its parent directory is guaranteed
|
| * to exist.
|
| */
|
| abstract Future<bool> install(PackageId id, String path);
|
|
|
| /**
|
| + * Returns the directory in the system cache that the package identified by
|
| + * [id] should be installed to. [parent] is this source's subdirectory in the
|
| + * system cache directory.
|
| + *
|
| + * This doesn't need to be implemented if [shouldCache] is false.
|
| + */
|
| + String systemCacheDirectory(PackageId id, String parent) =>
|
| + join(parent, packageName(id));
|
| +
|
| + /**
|
| * When a [Pubspec] is parsed, it reads in the description for each
|
| * dependency. It is up to the dependency's [Source] to determine how that
|
| * should be interpreted. This will be called during parsing to validate that
|
|
|