aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Bo ├śrsted Andresen <bo.andresen@zlin.dk> 2008-06-10 17:48:25 +0000
committerAvatar Bo ├śrsted Andresen <bo.andresen@zlin.dk> 2008-06-10 17:48:25 +0000
commit1adbe93d8d93e336202c1600f24ad9e9ed3787b4 (patch)
treec81bfced3491b907881a87e0b2af5182ff1bb1d5
parent52a5d9b789b0998cdd2009c08f0ff24710887be0 (diff)
downloadpaludis-1adbe93d8d93e336202c1600f24ad9e9ed3787b4.tar.gz
paludis-1adbe93d8d93e336202c1600f24ad9e9ed3787b4.tar.xz
Make keepdir() die when any of its arguments start with ${D}.
-rw-r--r--paludis/repositories/e/ebuild/install_functions.bash3
1 files changed, 3 insertions, 0 deletions
diff --git a/paludis/repositories/e/ebuild/install_functions.bash b/paludis/repositories/e/ebuild/install_functions.bash
index 3c836db..33a2fdd 100644
--- a/paludis/repositories/e/ebuild/install_functions.bash
+++ b/paludis/repositories/e/ebuild/install_functions.bash
@@ -33,6 +33,9 @@ export MOPREFIX="${PN}"
keepdir()
{
+ if [[ ${@} != ${@#${D}} ]]; then
+ paludis_assert_unless_nonfatal "You should not use \${D} with helpers."
+ fi
dodir "$@"
if [[ "${1}" == "-R" ]] || [[ "${1}" == "-r" ]] ; then
shift