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

Issue 8819030: Create the SDK in a temporary directory and copy it as a final step. (Closed)

Created:
9 years ago by dgrove
Modified:
9 years ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Create the SDK in a temporary directory and copy it as a final step. Committed: https://code.google.com/p/dart/source/detail?r=2137

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -8 lines) Patch
M dart.gyp View 1 chunk +1 line, -1 line 0 comments Download
M tools/create_sdk.py View 1 2 7 chunks +16 lines, -7 lines 2 comments Download

Messages

Total messages: 4 (0 generated)
dgrove
9 years ago (2011-12-06 18:50:35 UTC) #1
Siggi Cherem (dart-lang)
lgtm http://codereview.chromium.org/8819030/diff/1/tools/create_sdk.py File tools/create_sdk.py (right): http://codereview.chromium.org/8819030/diff/1/tools/create_sdk.py#newcode360 tools/create_sdk.py:360: UTIL = join(SDK_tmp, 'tools') UTILS -> TOOLS or ...
9 years ago (2011-12-06 18:58:42 UTC) #2
ahe
LGTM http://codereview.chromium.org/8819030/diff/7001/tools/create_sdk.py File tools/create_sdk.py (right): http://codereview.chromium.org/8819030/diff/7001/tools/create_sdk.py#newcode366 tools/create_sdk.py:366: copytree(SDK_tmp, SDK) Have you considered this approach (in ...
9 years ago (2011-12-07 11:23:29 UTC) #3
ahe
9 years ago (2011-12-07 11:25:11 UTC) #4
http://codereview.chromium.org/8819030/diff/7001/tools/create_sdk.py
File tools/create_sdk.py (right):

http://codereview.chromium.org/8819030/diff/7001/tools/create_sdk.py#newcode366
tools/create_sdk.py:366: copytree(SDK_tmp, SDK)
On 2011/12/07 11:23:29, ahe wrote:
> Have you considered this approach (in shell script pseudo code):
> 
> rm -rf $SDK
> rm -rf ${SDK}.tmp
> mkdir ${SDK}.tmp
> put everything in ${SDK}.tmp
> mv ${SDK}.tmp $SDK
> 
> The downside to the current approach is that it is twice as slow.

Actually, there is another downside to the current approach. You cannot
interrupt the build safely. If I hit Ctrl-C while copytree is running, I get a
broken build.

Powered by Google App Engine
This is Rietveld 408576698