Gentoo Archives: gentoo-dev

From: Justin Lecher <jlec@g.o>
To: gentoo-dev@l.g.o
Cc: Justin Lecher <jlec@g.o>
Subject: [gentoo-dev] [PATCH 6/8] virtualx.eclass: Add missing die
Date: Sat, 28 Nov 2015 16:23:59
Message-Id: 1448727664-25886-6-git-send-email-jlec@gentoo.org
In Reply to: [gentoo-dev] [PATCH 1/8] virtualx.eclass: Use case/esac to handle supported EAPIs by Justin Lecher
1 Signed-off-by: Justin Lecher <jlec@g.o>
2 ---
3 eclass/virtualx.eclass | 5 +++--
4 1 file changed, 3 insertions(+), 2 deletions(-)
5
6 diff --git a/eclass/virtualx.eclass b/eclass/virtualx.eclass
7 index 1f90147..d10dbb2 100644
8 --- a/eclass/virtualx.eclass
9 +++ b/eclass/virtualx.eclass
10 @@ -94,9 +94,10 @@ virtualmake() {
11 local i=0
12 local retval=0
13 local OLD_SANDBOX_ON="${SANDBOX_ON}"
14 - local XVFB=$(type -p Xvfb)
15 - local XHOST=$(type -p xhost)
16 + local XVFB XHOST XDISPLAY
17 local xvfbargs="-screen 0 1280x1024x24"
18 + XVFB=$(type -p Xvfb) || die
19 + XHOST=$(type -p xhost) || die
20
21 # backcompat for maketype
22 if [[ -n ${maketype} ]]; then
23 --
24 2.6.3