|
Add offline support to pub install and update.
If you pass "--offline" to either, it will treat your system cache
as if it were the package server. Running update in offline also
prints a warning that you may have selected an older version of a
package.
BUG=https://code.google.com/p/dart/issues/detail?id=8262
R=nweiz@google.com
Committed: https://code.google.com/p/dart/source/detail?r=22487
Total comments: 21
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+254 lines, -41 lines) |
Patch |
 |
M |
sdk/lib/_internal/pub/bin/pub.dart
|
View
|
1
2
|
3 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
sdk/lib/_internal/pub/lib/src/command.dart
|
View
|
1
|
3 chunks |
+9 lines, -3 lines |
0 comments
|
Download
|
 |
M |
sdk/lib/_internal/pub/lib/src/command_install.dart
|
View
|
1
2
|
2 chunks |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sdk/lib/_internal/pub/lib/src/command_lish.dart
|
View
|
1
2
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
sdk/lib/_internal/pub/lib/src/command_update.dart
|
View
|
1
2
|
3 chunks |
+18 lines, -2 lines |
0 comments
|
Download
|
 |
M |
sdk/lib/_internal/pub/lib/src/command_uploader.dart
|
View
|
1
2
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
sdk/lib/_internal/pub/lib/src/hosted_source.dart
|
View
|
1
2
|
3 chunks |
+47 lines, -10 lines |
0 comments
|
Download
|
 |
M |
sdk/lib/_internal/pub/lib/src/system_cache.dart
|
View
|
1
|
1 chunk |
+11 lines, -3 lines |
0 comments
|
Download
|
 |
M |
sdk/lib/_internal/pub/test/descriptor.dart
|
View
|
|
2 chunks |
+13 lines, -10 lines |
0 comments
|
Download
|
 |
A |
sdk/lib/_internal/pub/test/install/hosted/offline_test.dart
|
View
|
|
1 chunk |
+66 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sdk/lib/_internal/pub/test/pub_test.dart
|
View
|
1
2
|
3 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
A |
sdk/lib/_internal/pub/test/update/hosted/offline_test.dart
|
View
|
1
|
1 chunk |
+68 lines, -0 lines |
0 comments
|
Download
|
Total messages: 7 (0 generated)
|