diff options
author | Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> | 2012-09-26 22:31:20 +0200 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> | 2012-09-26 22:31:20 +0200 |
commit | ab46499322311c1faa710c63d0a5339e49a9061a (patch) | |
tree | 2461ce1b29a6c5631b66bdfa1e730394fddca617 /bin/save-ebuild-env.sh | |
parent | test_ipc_daemon: increase sleep for bug #436334 (diff) | |
download | portage-ab46499322311c1faa710c63d0a5339e49a9061a.tar.gz portage-ab46499322311c1faa710c63d0a5339e49a9061a.tar.bz2 portage-ab46499322311c1faa710c63d0a5339e49a9061a.zip |
Add eapi.sh with ___eapi_*() functions and use these functions in other files.
Diffstat (limited to 'bin/save-ebuild-env.sh')
-rw-r--r-- | bin/save-ebuild-env.sh | 9 |
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 \ |