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

Unified Diff: src/scripts/make_chroot.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 | « no previous file | src/scripts/make_local_repo.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scripts/make_chroot.sh
diff --git a/src/scripts/make_chroot.sh b/src/scripts/make_chroot.sh
index 54e8fa9fa160b575886c7c88cbe76f9b0b80e755..63a5ad0240b15847d20fd8a850d87484af8fb5f7 100755
--- a/src/scripts/make_chroot.sh
+++ b/src/scripts/make_chroot.sh
@@ -17,8 +17,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_PKGLIST="$SRC_ROOT/package_repo/package-list-dev.txt"
« no previous file with comments | « no previous file | src/scripts/make_local_repo.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698