Ignore missing python library when detecting python architecture and just return unknown, which should disable building pyauto. The ARM buildbots have an incorrect python_ver set.

BUG=none
TEST=ARM buildbots go green.
TBR=zelidrag
Review URL: http://codereview.chromium.org/669071

git-svn-id: http://src.chromium.org/svn/trunk/src/build@40632 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
thestig@chromium.org 2010-03-04 17:20:29 +00:00
Родитель 9944007d9a
Коммит f6b66cdd4b
1 изменённых файлов: 8 добавлений и 4 удалений

Просмотреть файл

@ -10,12 +10,16 @@
# python_arch.sh /path/to/sysroot/usr/lib/libpython2.4.so.1.0
#
set -e
python=$(readlink -f "$1")
if [ -z "$python" ]; then
echo unknown
exit 0;
fi
file_out=$(file "$python")
set +e
if [ -z "$file_out" ]; then
echo unknown
exit 0;
fi
echo $file_out | grep -qs "ARM"
if [ $? -eq 0 ]; then