summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2015-07-27 16:35:19 +0000
committerMichał Górny <mgorny@gentoo.org>2015-07-27 16:35:19 +0000
commit8440ee265e45d7ebab344f7e02ae9eb1b199a164 (patch)
tree01accc8ebde0626b5deb20ea72867bfe7b882a7f /eclass
parentBan calling pythonN and pythonN-config when the other version of Python is se... (diff)
downloadhistorical-8440ee265e45d7ebab344f7e02ae9eb1b199a164.tar.gz
historical-8440ee265e45d7ebab344f7e02ae9eb1b199a164.tar.bz2
historical-8440ee265e45d7ebab344f7e02ae9eb1b199a164.zip
python_wrapper_setup(): make banned helpers exit with 127.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/ChangeLog5
-rw-r--r--eclass/python-utils-r1.eclass4
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