build: Make make_chroot and make_local_repo fail when run as root.

Still seeing some bugs get filed related to this.  I went through
all of the scripts, but let me know if I missed any.

Review URL: http://codereview.chromium.org/432002

git-svn-id: svn://chrome-svn/chromeos/trunk@306 06c00378-0e64-4dae-be16-12b19f9950a1
This commit is contained in:
derat@google.com 2009-11-23 16:33:38 +00:00
parent 4e7a92bd48
commit 5fc3fcf15e
2 changed files with 4 additions and 2 deletions

View File

@ -17,8 +17,9 @@
# The path to common.sh should be relative to your script's location. # The path to common.sh should be relative to your script's location.
. "$(dirname "$0")/common.sh" . "$(dirname "$0")/common.sh"
# Script must be run outside the chroot # Script must be run outside the chroot and as a regular user.
assert_outside_chroot assert_outside_chroot
assert_not_root_user
DEFAULT_PKGLIST="$SRC_ROOT/package_repo/package-list-dev.txt" DEFAULT_PKGLIST="$SRC_ROOT/package_repo/package-list-dev.txt"

View File

@ -8,8 +8,9 @@
# The path to common.sh should be relative to your script's location. # The path to common.sh should be relative to your script's location.
. "$(dirname "$0")/common.sh" . "$(dirname "$0")/common.sh"
# Script must be run outside the chroot # Script must be run outside the chroot and as a regular user.
assert_outside_chroot assert_outside_chroot
assert_not_root_user
DEFAULT_DEST="$GCLIENT_ROOT/repo" DEFAULT_DEST="$GCLIENT_ROOT/repo"
DEFAULT_DEV_PKGLIST="$SRC_ROOT/package_repo/repo_list_dev.txt" DEFAULT_DEV_PKGLIST="$SRC_ROOT/package_repo/repo_list_dev.txt"