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

Unified Diff: build_image

Issue 3972001: Setup python symlinks for python on stateful partition. (Closed) Base URL: http://git.chromium.org/git/crosutils.git
Patch Set: Change unlink to rm Created 10 years, 2 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_image
diff --git a/build_image b/build_image
index 3b3f061df6604739040167e80dacd7a0d5bc461a..0865243b0a8cb8e668f0d1082afcccc7d8fd9f3c 100755
--- a/build_image
+++ b/build_image
@@ -427,6 +427,18 @@ update_dev_packages() {
${ROOT_FS_DIR}/usr/local/lib/python2.6/site-packages/pygtk.pth"
fi
+ # If python is installed on stateful-dev, fix python symlinks.
+ local python_path="/usr/local/bin/python2.6"
+ if [ -e "${ROOT_FS_DIR}${python_path}" ]; then
+ info "Fixing python symlinks for developer and test images."
+ local python_paths="/usr/bin/python /usr/local/bin/python \
+ /usr/bin/python2 /usr/local/bin/python2"
+ for path in ${python_paths}; do
+ sudo rm -f "${ROOT_FS_DIR}${path}"
+ sudo ln -s ${python_path} "${ROOT_FS_DIR}${path}"
+ done
+ fi
+
# Check that the image has been correctly created. Only do it if not
# building a factory install image and not a dev install shim, as the
# INSTALL_MASK for it will make test_image fail.
« 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