mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-23 10:54:33 +00:00
Bug 1174524 - Make objdir path comparison case-insensitive on Windows. r=mshal
os.path.realpath already implies os.path.normpath, so this just changes normpath to normcase.
This commit is contained in:
parent
bbbd843bc9
commit
0a800b87f2
@ -43,8 +43,8 @@ def ancestors(path):
|
||||
def samepath(path1, path2):
|
||||
if hasattr(os.path, 'samefile'):
|
||||
return os.path.samefile(path1, path2)
|
||||
return os.path.normpath(os.path.realpath(path1)) == \
|
||||
os.path.normpath(os.path.realpath(path2))
|
||||
return os.path.normcase(os.path.realpath(path1)) == \
|
||||
os.path.normcase(os.path.realpath(path2))
|
||||
|
||||
class BadEnvironmentException(Exception):
|
||||
"""Base class for errors raised when the build environment is not sane."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user