aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2009-09-09 17:57:43 +0100
committerAvatar David Leverton <levertond@googlemail.com> 2009-09-09 17:57:43 +0100
commitf4786f3c551b4a330286d80a128bffa8e48a3841 (patch)
treedace1bf80f8eb1bec6282dc1652eda3be93165b2
parent4c18d1cdef297325314de41108fe41385c07867d (diff)
downloadpaludis-f4786f3c551b4a330286d80a128bffa8e48a3841.tar.gz
paludis-f4786f3c551b4a330286d80a128bffa8e48a3841.tar.xz
Unset LD_* before running tr
-rwxr-xr-xpaludis/repositories/e/ebuild/ebuild.bash9
1 files changed, 5 insertions, 4 deletions
diff --git a/paludis/repositories/e/ebuild/ebuild.bash b/paludis/repositories/e/ebuild/ebuild.bash
index a5c2bcf..1727d9c 100755
--- a/paludis/repositories/e/ebuild/ebuild.bash
+++ b/paludis/repositories/e/ebuild/ebuild.bash
@@ -223,6 +223,11 @@ ebuild_scrub_environment()
ebuild_safe_source "${1}" PATH PALUDIS_SOURCE_MERGED_VARIABLES \
PALUDIS_BRACKET_MERGED_VARIABLES LD_LIBRARY_PATH paludis_declared_functions || exit 1
+ unset -v $(
+ for v in ${!LD_*}; do
+ [[ ${v} != LD_LIBRARY_PATH ]] && echo ${v}
+ done )
+
unset -f ${paludis_declared_functions}
unset -v paludis_declared_functions
@@ -243,10 +248,6 @@ ebuild_scrub_environment()
echo "\${!${PALUDIS_CLIENT_UPPER}_CMDLINE_*} ${PALUDIS_CLIENT_UPPER}_OPTIONS" )
unset -v CATEGORY PN PV P PNV PVR PF PNVR
- unset -v $(
- for v in ${!LD_*}; do
- [[ ${v} != LD_LIBRARY_PATH ]] && echo ${v}
- done )
unset -v ebuild EBUILD
unset -v $(
for v in ${PALUDIS_SOURCE_MERGED_VARIABLES} ${PALUDIS_BRACKET_MERGED_VARIABLES} ; do