mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
Add a nice message for cygwin users, telling them to rebase when necessary.
BUG=53483 TEST=none Review URL: http://codereview.chromium.org/3435010 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@59699 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
@@ -73,7 +73,15 @@ def Popen(args, **kwargs):
|
||||
# executable, but shell=True makes subprocess on Linux fail when it's called
|
||||
# with a list because it only tries to execute the first item in the list.
|
||||
kwargs['shell'] = (sys.platform=='win32')
|
||||
return subprocess.Popen(args, **kwargs)
|
||||
try:
|
||||
return subprocess.Popen(args, **kwargs)
|
||||
except OSError, e:
|
||||
if e.errno == errno.EAGAIN and sys.platform == 'cygwin':
|
||||
raise Error(
|
||||
'Visit '
|
||||
'http://code.google.com/p/chromium/wiki/CygwinDllRemappingFailure to '
|
||||
'learn how to fix this error; you need to rebase your cygwin dlls')
|
||||
raise
|
||||
|
||||
|
||||
def CheckCall(command, cwd=None, print_error=True):
|
||||
|
||||
Reference in New Issue
Block a user