summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-01-13 18:52:07 +0000
committerMike Frysinger <vapier@gentoo.org>2007-01-13 18:52:07 +0000
commit0c6454261c514f021a4ddce2415a68773027ed6a (patch)
tree35c3d8c0c0bed71a7f22c80a1b8b0cc369d105b5 /bin
parentCatch InvalidData exceptions for bad atoms passed as emerge arguments. (diff)
downloadportage-idfetch-0c6454261c514f021a4ddce2415a68773027ed6a.tar.gz
portage-idfetch-0c6454261c514f021a4ddce2415a68773027ed6a.tar.bz2
portage-idfetch-0c6454261c514f021a4ddce2415a68773027ed6a.zip
make sure people call addread/addwrite/adddeny/addpredict correctly
svn path=/main/trunk/; revision=5632
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ebuild.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index caf37194..57eca618 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -87,18 +87,22 @@ export SANDBOX_ON="0"
# sandbox support functions; defined prior to profile.bashrc srcing, since the profile might need to add a default exception (/usr/lib64/conftest fex)
addread() {
+ [[ -z $1 || -n $2 ]] && die "Usage: addread <colon-delimited list of paths>"
export SANDBOX_READ="$SANDBOX_READ:$1"
}
addwrite() {
+ [[ -z $1 || -n $2 ]] && die "Usage: addwrite <colon-delimited list of paths>"
export SANDBOX_WRITE="$SANDBOX_WRITE:$1"
}
adddeny() {
+ [[ -z $1 || -n $2 ]] && die "Usage: adddeny <colon-delimited list of paths>"
export SANDBOX_DENY="$SANDBOX_DENY:$1"
}
addpredict() {
+ [[ -z $1 || -n $2 ]] && die "Usage: addpredict <colon-delimited list of paths>"
export SANDBOX_PREDICT="$SANDBOX_PREDICT:$1"
}