Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(611)

Side by Side Diff: lib/src/source/cached.dart

Issue 1239623005: "pub cache repair" prints a more detailed summary. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « lib/src/global_packages.dart ('k') | lib/src/source/git.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « lib/src/global_packages.dart ('k') | lib/src/source/git.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698