f84d755521
The `file` program follows POSIX as outlined here: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/file.html Specifically, this part causes troubles: If the file named by the file operand does not exist, cannot be read, or the type of the file named by the file operand cannot be determined, this shall not be considered an error that affects the exit status. With older versions of `file` (that does not conform to POSIX), this script will exit 0 with "unknown" as its output when "$1" does not exist. But with recent releases (that conform to POSIX), this script will exit 1 and can break the build. Have the script explicitly check for the existence of $1 and if it does not exist, then runt he unknown logic like normal. BUG=chromium:332547 TEST=ran python_arch.sh on bogus files with new & old `file` programs Review URL: https://codereview.chromium.org/137433002 git-svn-id: http://src.chromium.org/svn/trunk/src/build@244778 4ff67af0-8c30-449e-8e8b-ad334ec8d88c |
||
---|---|---|
.. | ||
unbundle | ||
chrome_linux.croc | ||
dump_app_syms | ||
install-arm-sysroot.py | ||
install-chromeos-fonts.py | ||
pkg-config-wrapper | ||
python_arch.sh | ||
rewrite_dirs.py | ||
sysroot_ld_path.sh | ||
system.gyp |