Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Unified Diff: build/linux/python_arch.sh

Issue 669071: Ignore missing python library when detecting python architecture and just ret... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/linux/python_arch.sh
===================================================================
--- build/linux/python_arch.sh (revision 40631)
+++ build/linux/python_arch.sh (working copy)
@@ -10,13 +10,17 @@
# 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")
+if [ -z "$file_out" ]; then
+ echo unknown
+ exit 0;
+fi
-set +e
-
echo $file_out | grep -qs "ARM"
if [ $? -eq 0 ]; then
echo arm
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698