commit:     f4aa49bc1ba210a1257ae6291a60d0944c32691d
Author:     Zac Medico <zachary.medico <AT> sony <DOT> com>
AuthorDate: Wed Jul  3 21:20:00 2019 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Wed Jul  3 21:26:25 2019 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=f4aa49bc

ebuild.sh: suppress export error messages for eix-update

Suppress export error messages like this for eix-update:

/usr/lib/portage/python3.6/ebuild.sh: line 11: export: ___in_portage_iuse: not 
a function

Fixes: 7f1aac111320 ("ebuild.sh: unexport ___in_portage_iuse function (bug 
680810)")
Bug: https://bugs.gentoo.org/680810
Bug: https://bugs.gentoo.org/689128
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 bin/ebuild.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 50a0330f3..56555a5b7 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -8,7 +8,7 @@ unalias -a
 
 # Make sure this isn't exported to scripts we execute.
 unset BASH_COMPAT
-export -n -f ___in_portage_iuse
+declare -F ___in_portage_iuse >/dev/null && export -n -f ___in_portage_iuse
 
 source "${PORTAGE_BIN_PATH}/isolated-functions.sh" || exit 1
 

Reply via email to