You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
depot_tools/third_party
dnj@chromium.org 5549faa546 Fix 'gsutil' self-discovery.
Use 'realpath' instead of 'abspath' for self-discovery. This fixes an
issue where 'gsutil' cannot find its dependencies when it is referenced
through a symbolic link.

Specifically, the symlink was: /b/scripts => /b/build/scripts
'gsutil' was called as:
/b/scripts/slave/../../../depot_tools/third_party/gsutil/gsutil

Because '/b/scripts/slave' resolves to '/b/build/scripts/slave', the three
parent directory operators actually resolve to '/b', but 'os.path.abspath'
blindly resolves them to '/'.

BUG=chromium:474442
TEST=live
  - Signed onto failing bot, made this change, 'gsutil' works.

R=hinoka@chromium.org

Review URL: https://codereview.chromium.org/1060353002

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@294712 0039d316-1c4b-4281-b951-d872f2087c98
10 years ago
..
boto Replaced boto certificate 11 years ago
colorama Update colorama from upstream to 5a3100113a3a. 12 years ago
coverage Add python coverage 3.7 to depot tools. 12 years ago
fancy_urllib Added gsutil/ to depot_tools/third_party/ 13 years ago
google_api_python_client Added OAuth2 support in depot_tools 10 years ago
gsutil Fix 'gsutil' self-discovery. 10 years ago
httplib2 Added OAuth2 authentication to apply_issue 11 years ago
logilab pylint: upgrade to 1.4.1 11 years ago
oauth2client Added OAuth2 authentication to apply_issue 11 years ago
pylint pylint: upgrade to 1.4.1 11 years ago
pymox Fix licensing headers and move most third party code to third_party/ 16 years ago
repo Revamped terminal output for update. 11 years ago
retry_decorator Added gsutil/ to depot_tools/third_party/ 13 years ago
simplejson Add simplejson 2.1.0 and use it when it's not already installed. 16 years ago
six Revert "Revert "pylint: upgrade to 1.3.1"" 11 years ago
uritemplate Added OAuth2 support in depot_tools 10 years ago
__init__.py Fix licensing headers and move most third party code to third_party/ 16 years ago
pylint.py Revert "Revert "pylint: upgrade to 1.3.1"" 11 years ago
upload.py upload.py: Fix immutable exception attribute. 10 years ago