diff options
author | Andras Becsi <andras.becsi@digia.com> | 2014-03-14 18:37:44 +0100 |
---|---|---|
committer | Andras Becsi <andras.becsi@digia.com> | 2014-06-04 18:13:22 +0200 |
commit | c0273ea019f2f0c8096f6202770ff47e1da8b8bc (patch) | |
tree | 9fa2ba90107b5494c9a6453eeed7cf462cb4b62f /chromium | |
parent | e45e2af927bee03e7f2209b4d717a8c3555cde23 (diff) | |
download | qtwebengine-chromium-c0273ea019f2f0c8096f6202770ff47e1da8b8bc.tar.gz |
<chromium> Cherry-pick https://codereview.chromium.org/137433002 from upstream
This fixes the build with a cross compiler toolchain.
We do not require the functionality of this script but
gyp tries to run it and fails if the specified file
does not exist.
As the upstream issue mentions, this script is "going
away soonish", until then we can keep this patch around.
Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
Change-Id: I5de88fcaf750bad4eec2d72a134a86f75a30453e
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
Diffstat (limited to 'chromium')
-rwxr-xr-x | chromium/build/linux/python_arch.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chromium/build/linux/python_arch.sh b/chromium/build/linux/python_arch.sh index 3a41f94a980..e0f63bc6b04 100755 --- a/chromium/build/linux/python_arch.sh +++ b/chromium/build/linux/python_arch.sh @@ -11,7 +11,9 @@ # file_out=$(file --dereference "$1") -if [ $? -ne 0 ]; then +# The POSIX spec says that `file` should not exit(1) if the file does not +# exist, so do our own -e check to catch things. +if [ $? -ne 0 ] || [ ! -e "$1" ] ; then echo unknown exit 0 fi |