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

Unified Diff: src/scripts/make_local_repo.sh

Issue 432002: build: Make make_chroot and make_local_repo fail when run as root. (Closed)
Patch Set: Created 11 years, 1 month 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 | « src/scripts/make_chroot.sh ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scripts/make_local_repo.sh
diff --git a/src/scripts/make_local_repo.sh b/src/scripts/make_local_repo.sh
index 7392916253de919fb3be819baac41208c2bc357f..11e28bba3a04b87dd2a070c20147dc971da36eab 100755
--- a/src/scripts/make_local_repo.sh
+++ b/src/scripts/make_local_repo.sh
@@ -8,8 +8,9 @@
# The path to common.sh should be relative to your script's location.
. "$(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_not_root_user
DEFAULT_DEST="$GCLIENT_ROOT/repo"
DEFAULT_DEV_PKGLIST="$SRC_ROOT/package_repo/repo_list_dev.txt"
« no previous file with comments | « src/scripts/make_chroot.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698