mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 23:47:14 -08:00
Merge branch 'Pesa-bug-569876'
* Pesa-bug-569876: virtualx.eclass: fix diagnostic messages in virtx()
This commit is contained in:
@@ -205,7 +205,7 @@ virtx() {
|
||||
export DISPLAY=:${XDISPLAY}
|
||||
# Do not break on error, but setup $retval, as we need
|
||||
# to kill Xvfb
|
||||
debug-print "${FUNCNAME}: ${VIRTUALX_COMMAND} \"$@\""
|
||||
debug-print "${FUNCNAME}: $@"
|
||||
if has "${EAPI}" 2 3; then
|
||||
"$@"
|
||||
retval=$?
|
||||
@@ -218,7 +218,7 @@ virtx() {
|
||||
kill $(cat /tmp/.X${XDISPLAY}-lock)
|
||||
|
||||
# die if our command failed
|
||||
[[ ${retval} -ne 0 ]] && die "${FUNCNAME}: the ${VIRTUALX_COMMAND} failed."
|
||||
[[ ${retval} -ne 0 ]] && die "Failed to run '$@'"
|
||||
|
||||
return 0 # always return 0, it can be altered by failed kill for Xvfb
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user