diff options
author | Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> | 2012-10-03 22:47:12 +0000 |
---|---|---|
committer | Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> | 2012-10-03 22:47:12 +0000 |
commit | f7ba401ee6d7946c022f0cbc68c679a34227759e (patch) | |
tree | 5934e3114ead0f20a200e050d99fee86ceef7cd7 /eclass/virtualx.eclass | |
parent | stable ppc ppc64, bug #437026 (diff) | |
download | gentoo-2-f7ba401ee6d7946c022f0cbc68c679a34227759e.tar.gz gentoo-2-f7ba401ee6d7946c022f0cbc68c679a34227759e.tar.bz2 gentoo-2-f7ba401ee6d7946c022f0cbc68c679a34227759e.zip |
Unbreak EAPI=2 and 3 users of virtualx.eclass, bug #406353
Diffstat (limited to 'eclass/virtualx.eclass')
-rw-r--r-- | eclass/virtualx.eclass | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/eclass/virtualx.eclass b/eclass/virtualx.eclass index ff7be80f848d..0621b18b301b 100644 --- a/eclass/virtualx.eclass +++ b/eclass/virtualx.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/virtualx.eclass,v 1.42 2012/10/02 08:14:36 kensington Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/virtualx.eclass,v 1.43 2012/10/03 22:47:12 chithanh Exp $ # @ECLASS: virtualx.eclass # @MAINTAINER: @@ -144,8 +144,13 @@ virtualmake() { # Do not break on error, but setup $retval, as we need # to kill Xvfb debug-print "${FUNCNAME}: ${VIRTUALX_COMMAND} \"$@\"" - nonfatal ${VIRTUALX_COMMAND} "$@" - retval=$? + if has "${EAPI}" 2 3; then + ${VIRTUALX_COMMAND} "$@" + retval=$? + else + nonfatal ${VIRTUALX_COMMAND} "$@" + retval=$? + fi # Now kill Xvfb kill $(cat /tmp/.X${XDISPLAY}-lock) |