diff options
author | Michał Górny <mgorny@gentoo.org> | 2015-07-27 16:35:19 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2015-07-27 16:35:19 +0000 |
commit | e06a2827e40dc042c56e0f247219b369563b8903 (patch) | |
tree | b0d8ff205be511769c6b3e1ab544791f8118cd17 /eclass | |
parent | Ban calling pythonN and pythonN-config when the other version of Python is se... (diff) | |
download | gentoo-2-e06a2827e40dc042c56e0f247219b369563b8903.tar.gz gentoo-2-e06a2827e40dc042c56e0f247219b369563b8903.tar.bz2 gentoo-2-e06a2827e40dc042c56e0f247219b369563b8903.zip |
python_wrapper_setup(): make banned helpers exit with 127.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/ChangeLog | 5 | ||||
-rw-r--r-- | eclass/python-utils-r1.eclass | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog index 5dd12d40fa9c..81207a092849 100644 --- a/eclass/ChangeLog +++ b/eclass/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for eclass directory # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1731 2015/07/27 16:34:48 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1732 2015/07/27 16:35:19 mgorny Exp $ + + 27 Jul 2015; Michał Górny <mgorny@gentoo.org> python-utils-r1.eclass: + python_wrapper_setup(): make banned helpers exit with 127. 27 Jul 2015; Michał Górny <mgorny@gentoo.org> python-utils-r1.eclass: Ban calling pythonN and pythonN-config when the other version of Python is diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass index 2bd58d9fd9f9..000c27f1a249 100644 --- a/eclass/python-utils-r1.eclass +++ b/eclass/python-utils-r1.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/python-utils-r1.eclass,v 1.87 2015/07/27 16:34:48 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/python-utils-r1.eclass,v 1.88 2015/07/27 16:35:19 mgorny Exp $ # @ECLASS: python-utils-r1 # @MAINTAINER: @@ -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 |