Skip to content

Commit

Permalink
Bug 1177634 - Ensure EXTERNAL_SOURCE_DIR uses normcase. r=glandium
Browse files Browse the repository at this point in the history
  • Loading branch information
Edmund Wong committed Jul 8, 2015
1 parent 857ea25 commit b7aeebe
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions python/mozbuild/mozbuild/frontend/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,11 @@ def is_read_allowed(path, config):
if mozpath.basedir(path, [topsrcdir]):
return True

if config.external_source_dir and \
mozpath.basedir(path, [config.external_source_dir]):
return True
if config.external_source_dir:
external_dir = os.path.normcase(config.external_source_dir)
norm_path = os.path.normcase(path)
if mozpath.basedir(norm_path, [external_dir]):
return True

return False

Expand Down

0 comments on commit b7aeebe

Please sign in to comment.