aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/ebuild/exheres-0/builtin_initmisc.bash
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-03-06 20:12:32 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-03-06 20:12:32 +0000
commit4145dff573dcbf077421585bbbfa522864b461f4 (patch)
tree2e0bae3742a1afb67092ce596f948ee901e6870a /paludis/repositories/e/ebuild/exheres-0/builtin_initmisc.bash
parent2592e84abee0edfc7164732b116be430dc822090 (diff)
downloadpaludis-4145dff573dcbf077421585bbbfa522864b461f4.tar.gz
paludis-4145dff573dcbf077421585bbbfa522864b461f4.tar.xz
Be less strict about vars in initrm, initmisc
Diffstat (limited to 'paludis/repositories/e/ebuild/exheres-0/builtin_initmisc.bash')
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/builtin_initmisc.bash3
1 files changed, 3 insertions, 0 deletions
diff --git a/paludis/repositories/e/ebuild/exheres-0/builtin_initmisc.bash b/paludis/repositories/e/ebuild/exheres-0/builtin_initmisc.bash
index 11de213ca..000dcf80e 100644
--- a/paludis/repositories/e/ebuild/exheres-0/builtin_initmisc.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/builtin_initmisc.bash
@@ -20,15 +20,18 @@ builtin_initmisc()
{
local a
for a in PALUDIS_NON_EMPTY_VARIABLES ${PALUDIS_NON_EMPTY_VARIABLES} ; do
+ [[ "${a#build:}" != "${a}" ]] && continue
[[ -z "${!a}" ]] && die "\$${a} unset or empty"
declare -r ${a}="${!a}"
done
for a in ${PALUDIS_DIRECTORY_VARIABLES} ; do
+ [[ "${a#build:}" != "${a}" ]] && continue
[[ -d "${!a}" ]] || die "\$${a} (\"${!a}\") not a directory"
done
for a in ${PALUDIS_DIRECTORY_IF_EXISTS_VARIABLES} ; do
+ [[ "${a#build:}" != "${a}" ]] && continue
[[ -e "${!a}" ]] && [[ ! -d "${!a}" ]] && \
die "\$${a} (\"${!a}\") exists but is not a directory"
done