| Index: utils/pub/system_cache.dart
|
| diff --git a/utils/pub/system_cache.dart b/utils/pub/system_cache.dart
|
| index 4041e40d8ac743faf18ef7e4770c3acd329305d2..1b5d9820b79ad20a7d43c410d63277511e833ca7 100644
|
| --- a/utils/pub/system_cache.dart
|
| +++ b/utils/pub/system_cache.dart
|
| @@ -63,6 +63,8 @@ class SystemCache {
|
| /// Gets the package identified by [id]. If the package is already cached,
|
| /// reads it from the cache. Otherwise, requests it from the source.
|
| Future<Pubspec> describe(PackageId id) {
|
| + if (id.isRoot) throw new ArgumentError("Cannot describe the root package.");
|
| +
|
| // Try to get it from the system cache first.
|
| if (id.source.shouldCache) {
|
| return id.systemCacheDirectory.then((packageDir) {
|
|
|