summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-01-21 01:43:38 +0000
committerZac Medico <zmedico@gentoo.org>2008-01-21 01:43:38 +0000
commitfcf842b1038a040eff86a06d54722700f0c57c9b (patch)
tree0a36ac07e792b83eafab4eb6837ee6d689cd6637 /bin/isolated-functions.sh
parentReplace the current diefunc() and die alias with a single die() function. (diff)
downloadportage-multirepo-fcf842b1038a040eff86a06d54722700f0c57c9b.tar.gz
portage-multirepo-fcf842b1038a040eff86a06d54722700f0c57c9b.tar.bz2
portage-multirepo-fcf842b1038a040eff86a06d54722700f0c57c9b.zip
We need to implement diefunc() since environment.bz2 files contain
calls to it (due to alias expansion). svn path=/main/trunk/; revision=9217
Diffstat (limited to 'bin/isolated-functions.sh')
-rwxr-xr-xbin/isolated-functions.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh
index 0a493490..7e7e710e 100755
--- a/bin/isolated-functions.sh
+++ b/bin/isolated-functions.sh
@@ -136,6 +136,12 @@ die() {
exit 1
}
+# We need to implement diefunc() since environment.bz2 files contain
+# calls to it (due to alias expansion).
+diefunc() {
+ die "${@}"
+}
+
quiet_mode() {
[[ ${PORTAGE_QUIET} -eq 1 ]]
}
@@ -434,7 +440,7 @@ save_ebuild_env() {
# There's no need to bloat environment.bz2 with internally defined
# functions and variables, so filter them out if possible.
- unset -f dump_trace die quiet_mode vecho elog_base eqawarn elog \
+ unset -f dump_trace die diefunc quiet_mode vecho elog_base eqawarn elog \
esyslog einfo einfon ewarn eerror ebegin _eend eend KV_major \
KV_minor KV_micro KV_to_int get_KV unset_colors set_colors has \
hasv hasq qa_source qa_call addread addwrite adddeny addpredict \