| Index: utils/pub/system_cache.dart
|
| diff --git a/utils/pub/system_cache.dart b/utils/pub/system_cache.dart
|
| index 6eed8ec38ee73bf149d50d00e0ff801e5d552fec..18fa1dbc0d5f61fc8d703fd54f9d0de25f441c2c 100644
|
| --- a/utils/pub/system_cache.dart
|
| +++ b/utils/pub/system_cache.dart
|
| @@ -70,7 +70,8 @@ class SystemCache {
|
| var pending = _pendingInstalls[id];
|
| if (pending != null) return pending;
|
|
|
| - var path = join(rootDir, id.source.name, id.source.packageName(id));
|
| + var sourceDir = join(rootDir, id.source.name);
|
| + var path = id.source.systemCacheDirectory(id, sourceDir);
|
| var future = exists(path).chain((exists) {
|
| // TODO(nweiz): better error handling
|
| if (exists) throw 'Package $id is already installed.';
|
|
|