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

Issue 12225149: Auto-reinstall broken packages in the system cache. (Closed)

Created:
7 years, 10 months ago by Bob Nystrom
Modified:
7 years, 10 months ago
Reviewers:
nweiz
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Auto-reinstall broken packages in the system cache. BUG=http://code.google.com/p/dart/issues/detail?id=5939 Committed: https://code.google.com/p/dart/source/detail?r=18480

Patch Set 1 #

Total comments: 6

Patch Set 2 : Look for empty "lib" dir to repair package. #

Patch Set 3 : Revise. #

Total comments: 2

Patch Set 4 : Remove dead code. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -1 line) Patch
M utils/pub/source.dart View 1 2 2 chunks +37 lines, -1 line 0 comments Download
A utils/tests/pub/install/hosted/repair_cache_test.dart View 1 2 1 chunk +64 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Bob Nystrom
I only wrote an integration test for the hosted source, but this should work for ...
7 years, 10 months ago (2013-02-12 22:58:36 UTC) #1
nweiz
https://codereview.chromium.org/12225149/diff/1/utils/pub/source.dart File utils/pub/source.dart (right): https://codereview.chromium.org/12225149/diff/1/utils/pub/source.dart#newcode117 utils/pub/source.dart:117: // got borked and reinstall. What if just "lib" ...
7 years, 10 months ago (2013-02-13 00:19:21 UTC) #2
Bob Nystrom
Thanks! https://codereview.chromium.org/12225149/diff/1/utils/pub/source.dart File utils/pub/source.dart (right): https://codereview.chromium.org/12225149/diff/1/utils/pub/source.dart#newcode117 utils/pub/source.dart:117: // got borked and reinstall. On 2013/02/13 00:19:21, ...
7 years, 10 months ago (2013-02-13 01:27:11 UTC) #3
nweiz
https://codereview.chromium.org/12225149/diff/1/utils/pub/source.dart File utils/pub/source.dart (right): https://codereview.chromium.org/12225149/diff/1/utils/pub/source.dart#newcode117 utils/pub/source.dart:117: // got borked and reinstall. On 2013/02/13 01:27:11, Bob ...
7 years, 10 months ago (2013-02-13 02:02:05 UTC) #4
Bob Nystrom
Should be better now: 1. It manually creates a broken cache using scheduleCreate() instead of ...
7 years, 10 months ago (2013-02-13 18:00:26 UTC) #5
nweiz
lgtm https://codereview.chromium.org/12225149/diff/9001/utils/tests/pub/test_pub.dart File utils/tests/pub/test_pub.dart (right): https://codereview.chromium.org/12225149/diff/9001/utils/tests/pub/test_pub.dart#newcode366 utils/tests/pub/test_pub.dart:366: // TODO REMOVE Did you mean to actually ...
7 years, 10 months ago (2013-02-13 19:54:31 UTC) #6
Bob Nystrom
7 years, 10 months ago (2013-02-13 21:11:31 UTC) #7
Message was sent while issue was closed.
Thanks!

https://codereview.chromium.org/12225149/diff/9001/utils/tests/pub/test_pub.dart
File utils/tests/pub/test_pub.dart (right):

https://codereview.chromium.org/12225149/diff/9001/utils/tests/pub/test_pub.d...
utils/tests/pub/test_pub.dart:366: // TODO REMOVE
On 2013/02/13 19:54:31, nweiz wrote:
> Did you mean to actually remove this method?

Heh, yes. :)

Powered by Google App Engine
This is Rietveld 408576698