Commit 9e378efb authored by maruel@chromium.org's avatar maruel@chromium.org

Don't reinstall *every* time. Just if the batch file doesn't exist.

Review URL: http://codereview.chromium.org/115085

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@15546 0039d316-1c4b-4281-b951-d872f2087c98
parent 69221c75
...@@ -19,8 +19,8 @@ if "%1" == "force" ( ...@@ -19,8 +19,8 @@ if "%1" == "force" (
:SVN_CHECK :SVN_CHECK
:: If the batch file exists, skip the svn check. :: If the batch file exists, skip the svn check.
if "%WIN_TOOLS_FORCE%" == "1" goto :SVN_INSTALL
if exist "%WIN_TOOLS_ROOT_DIR%\svn.bat" goto :PYTHON_CHECK if exist "%WIN_TOOLS_ROOT_DIR%\svn.bat" goto :PYTHON_CHECK
if "%WIN_TOOLS_FORCE%" == "1" goto :SVN_FORCE
call svn --version 2>nul 1>nul call svn --version 2>nul 1>nul
if errorlevel 1 goto :SVN_INSTALL if errorlevel 1 goto :SVN_INSTALL
goto :PYTHON_CHECK goto :PYTHON_CHECK
...@@ -54,9 +54,9 @@ goto :END ...@@ -54,9 +54,9 @@ goto :END
:PYTHON_CHECK :PYTHON_CHECK
:: If the batch file exists, skip the python check. :: If the batch file exists, skip the python check.
if "%WIN_TOOLS_FORCE%" == "1" goto :PYTHON_INSTALL
set ERRORLEVEL=0 set ERRORLEVEL=0
if exist "%WIN_TOOLS_ROOT_DIR%\python.bat" goto :END if exist "%WIN_TOOLS_ROOT_DIR%\python.bat" goto :END
if "%WIN_TOOLS_FORCE%" == "1" goto :PYTHON_INSTALL
call python --version 2>nul 1>nul call python --version 2>nul 1>nul
if errorlevel 1 goto :PYTHON_INSTALL if errorlevel 1 goto :PYTHON_INSTALL
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment