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

Unified Diff: build/linux/python_arch.sh

Issue 19221002: Use `file --dereference' instead of `readlink -f' + `file'. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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
diff --git a/build/linux/python_arch.sh b/build/linux/python_arch.sh
index c0b63a99689a35f2b9baa8c3e1f721ccd07b5c06..3a41f94a980f16675a57baf6422a71fa4fd0f673 100755
--- a/build/linux/python_arch.sh
+++ b/build/linux/python_arch.sh
@@ -10,12 +10,7 @@
# python_arch.sh /path/to/sysroot/usr/lib/libpython2.4.so.1.0
#
-python=$(readlink -f "$1")
-if [ ! -r "$python" ]; then
- echo unknown
- exit 0
-fi
-file_out=$(file "$python")
+file_out=$(file --dereference "$1")
if [ $? -ne 0 ]; then
echo unknown
exit 0
« 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