scripts: repair build_image nostatefuldev collision

Change-Id: Ib9fcc078d8e0223cd1b1376db91d8e71ae8359a6

BUG=cp file to itself fails in case of nostatefuldev
TEST=ran build_image with and without statefuldev

Review URL: http://codereview.chromium.org/4959001
Patch from Trevor Bourget <tbourget@codeaurora.org>.
This commit is contained in:
Trevor Bourget 2010-12-13 09:44:32 -07:00 committed by Brian Daugherty
parent 230756fc83
commit 8e6abb04c6

View File

@ -415,6 +415,7 @@ update_dev_packages() {
fi fi
# Install the bare necessary files so that the "emerge" command works # Install the bare necessary files so that the "emerge" command works
[ ${FLAGS_statefuldev} -eq ${FLAGS_TRUE} ] && \
sudo cp ${root_dev_dir}/etc/make.globals ${ROOT_FS_DIR}/etc/ sudo cp ${root_dev_dir}/etc/make.globals ${ROOT_FS_DIR}/etc/
sudo sed -i s,/usr/bin/wget,wget, ${ROOT_FS_DIR}/etc/make.globals sudo sed -i s,/usr/bin/wget,wget, ${ROOT_FS_DIR}/etc/make.globals
sudo mkdir -p ${ROOT_FS_DIR}/etc/make.profile sudo mkdir -p ${ROOT_FS_DIR}/etc/make.profile