DescriptionMake `python build/vs_toolchain.py update` mostly work on non-Windows.
1. GetFileList() returns a list of path\names on Windows but of path/names on
non-Windows. To not perturb existing hashes, I guess the hashing code should do
path.replace('/', '\\') before hashing.
2. GetFileList() returns a sorted list of filenames, and \ compares pretty
different than / (the former is less than all numbers while the latter
is greater, for example). So replace / with \\ for sorting too.
With this change, OS X produces the same file hash as Windows.
The script still early-exits on non-Windows, so no visible change yet.
BUG=495204
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=296271
Patch Set 1 #
Messages
Total messages: 10 (6 generated)
|