summaryrefslogtreecommitdiffstats
path: root/bin/save-ebuild-env.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/save-ebuild-env.sh')
-rw-r--r--bin/save-ebuild-env.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/bin/save-ebuild-env.sh b/bin/save-ebuild-env.sh
index 7ae3938ce..92cc692db 100644
--- a/bin/save-ebuild-env.sh
+++ b/bin/save-ebuild-env.sh
@@ -76,10 +76,11 @@ __save_ebuild_env() {
__unpack_tar __unset_colors \
${QA_INTERCEPTORS}
- case "${EAPI}" in
- 0|1|2|3|4|4-python|4-slot-abi) ;;
- *) unset -f usex ;;
- esac
+ if ___eapi_has_usex; then
+ unset -f usex
+ fi
+
+ unset -f $(compgen -A function ___eapi_)
# portage config variables and variables set directly by portage
unset ACCEPT_LICENSE BAD BRACKET BUILD_PREFIX COLS \