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

Unified Diff: sdk/lib/_internal/pub/lib/src/command/cache_add.dart

Issue 228703006: Add “pub cache repair” to forcibly re-install previously cached packages. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise. Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/pub/lib/src/command/cache_add.dart
diff --git a/sdk/lib/_internal/pub/lib/src/command/cache_add.dart b/sdk/lib/_internal/pub/lib/src/command/cache_add.dart
index fac394a0e6aaf717b7090b289bf81952ffeb232c..4b775f2c13081824abb7c717f5caaf37a790935b 100644
--- a/sdk/lib/_internal/pub/lib/src/command/cache_add.dart
+++ b/sdk/lib/_internal/pub/lib/src/command/cache_add.dart
@@ -55,7 +55,7 @@ class CacheAddCommand extends PubCommand {
}
// TODO(rnystrom): Support installing from git too.
- var source = this.cache.sources["hosted"];
+ var source = cache.sources["hosted"];
// TODO(rnystrom): Allow specifying the server.
return source.getVersions(package, package).then((versions) {

Powered by Google App Engine
This is Rietveld 408576698