mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 10:41:31 +00:00
Move toolchain update control into src, but keep download logic in depot_tools
Moves the update functionality out of update_depot_tools into src/ in https://codereview.chromium.org/175573004 . get_toolchain_if_required.py now expects a list of hashes on the command line, and makes sure that it gets one of those. toolchain2013.py saves a .json which contains information relevant to the interests of the caller, so that it can set up the parent environment. This is returned via the --output-json command line argument to get_...py R=iannucci@chromium.org BUG=323300 Review URL: https://codereview.chromium.org/168603004 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@252725 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
@@ -30,13 +30,6 @@ if errorlevel 1 goto :EOF
|
||||
:: Now clear errorlevel so it can be set by other programs later.
|
||||
set errorlevel=
|
||||
|
||||
:: Opt-in for now.
|
||||
IF "%DEPOT_TOOLS_WIN_TOOLCHAIN%" == "" GOTO :NOTOOLCHAIN
|
||||
call python %~dp0win_toolchain\get_toolchain_if_necessary.py
|
||||
if errorlevel 1 goto :EOF
|
||||
set errorlevel=
|
||||
:NOTOOLCHAIN
|
||||
|
||||
:: Shall skip automatic update?
|
||||
IF "%DEPOT_TOOLS_UPDATE%" == "0" GOTO :EOF
|
||||
|
||||
@@ -74,4 +67,4 @@ goto :EOF
|
||||
:GIT_SVN_UPDATE
|
||||
cd /d "%DEPOT_TOOLS_DIR%."
|
||||
call git svn rebase -q -q
|
||||
goto :EOF
|
||||
goto :EOF
|
||||
|
||||
Reference in New Issue
Block a user