From 2ffea0a3b302642eeacae38059b06181006d2573 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 12 May 2013 13:52:06 -0700 Subject: [PATCH] dohtml: restore cwd for __helpers_die --- bin/ebuild-helpers/dohtml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/ebuild-helpers/dohtml b/bin/ebuild-helpers/dohtml index 4be9bc2eb..fd9efd267 100755 --- a/bin/ebuild-helpers/dohtml +++ b/bin/ebuild-helpers/dohtml @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 2009-2010 Gentoo Foundation +# Copyright 2009-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh @@ -13,5 +13,7 @@ PYTHONPATH=$PORTAGE_PYM_PATH${PYTHONPATH:+:}$PYTHONPATH \ "${PORTAGE_PYTHON:-/usr/bin/python}" "$PORTAGE_BIN_PATH/dohtml.py" "$@" ret=$? +# Restore cwd for display by __helpers_die +cd "${__PORTAGE_HELPER_CWD}" [[ $ret -ne 0 ]] && __helpers_die "${0##*/} failed" exit $ret -- 2.26.2