| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library pub.source.cached; | 5 library pub.source.cached; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'package:path/path.dart' as path; | 9 import 'package:path/path.dart' as path; |
| 10 | 10 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 | 60 |
| 61 /// Downloads the package identified by [id] to the system cache. | 61 /// Downloads the package identified by [id] to the system cache. |
| 62 Future<Package> downloadToSystemCache(PackageId id); | 62 Future<Package> downloadToSystemCache(PackageId id); |
| 63 | 63 |
| 64 /// Returns the [Package]s that have been downloaded to the system cache. | 64 /// Returns the [Package]s that have been downloaded to the system cache. |
| 65 List<Package> getCachedPackages(); | 65 List<Package> getCachedPackages(); |
| 66 | 66 |
| 67 /// Reinstalls all packages that have been previously installed into the | 67 /// Reinstalls all packages that have been previously installed into the |
| 68 /// system cache by this source. | 68 /// system cache by this source. |
| 69 /// | 69 /// |
| 70 /// Returns a [Pair] whose first element is the number of packages | 70 /// Returns a [Pair] whose first element is the packages that were |
| 71 /// successfully repaired and the second is the number of failures. | 71 /// successfully repaired and the second is the packages that failed to be |
| 72 Future<Pair<int, int>> repairCachedPackages(); | 72 /// repaired. |
| 73 Future<Pair<List<PackageId>, List<PackageId>>> repairCachedPackages(); |
| 73 } | 74 } |
| OLD | NEW |