diff options
author | aharper@chromium.org <aharper@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-16 01:43:47 +0000 |
---|---|---|
committer | aharper@chromium.org <aharper@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-16 01:43:47 +0000 |
commit | ebd44572ce93998a7448bb52f4a857cb26a621c5 (patch) | |
tree | 520bf113bee57cc9dbccddeed21f125c333b665c /tools | |
parent | c82a5233cd2ca00d61c97fa0916460b02acbfb85 (diff) | |
download | chromium_src-ebd44572ce93998a7448bb52f4a857cb26a621c5.zip chromium_src-ebd44572ce93998a7448bb52f4a857cb26a621c5.tar.gz chromium_src-ebd44572ce93998a7448bb52f4a857cb26a621c5.tar.bz2 |
On Win32, keep all source relative paths on the drive with the project file.
Review URL: http://codereview.chromium.org/18103
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8160 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/xcodebodge/xcodebodge.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/xcodebodge/xcodebodge.py b/tools/xcodebodge/xcodebodge.py index 145e5fd..e5e0803 100755 --- a/tools/xcodebodge/xcodebodge.py +++ b/tools/xcodebodge/xcodebodge.py @@ -453,6 +453,11 @@ class XcodeProject(object): # 302594 since we can't assume Python 2.5 with os.path.relpath() source_root_parts = self.source_root_path.split(os.path.sep) target_parts = abs_path.split(os.path.sep) + # Guard against drive changes on Win32 and cygwin + if sys.platform == 'win32' and source_root_parts[0] <> target_parts[0]: + return None + if sys.platform == 'cygwin' and source_root_parts[2] <> target_parts[2]: + return None for i in range(min(len(source_root_parts), len(target_parts))): if source_root_parts[i] <> target_parts[i]: break else: |