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:
Birunthan Mohanathas 2015-06-16 08:24:29 -07:00
parent bbbd843bc9
commit 0a800b87f2

View File

@ -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."""