Exit with code 127 (used by shell as 'command not found') when banned
command is used. Probably doesn't make any difference but looks nicer.
---
 eclass/python-utils-r1.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
index 2584f3e..5944f03 100644
--- a/eclass/python-utils-r1.eclass
+++ b/eclass/python-utils-r1.eclass
@@ -896,7 +896,7 @@ python_wrapper_setup() {
                        cat >"${workdir}"/bin/${x} <<__EOF__
 #!/bin/sh
 echo "${x} is not supported by ${EPYTHON}" >&2
-exit 1
+exit 127
 __EOF__
                        chmod +x "${workdir}"/bin/${x} || die
                done
-- 
2.4.6


Reply via email to