From 2f2b3159e1a532c7513f14b81ce28116229fb3b8 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 22 Jun 2013 00:06:53 +0000 Subject: apache-module_src_install: do not clobber $PWD when changing dirs; use pushd+popd instead #471442 --- eclass/apache-module.eclass | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'eclass') diff --git a/eclass/apache-module.eclass b/eclass/apache-module.eclass index c4532d43cdd7..b0e82e7651cf 100644 --- a/eclass/apache-module.eclass +++ b/eclass/apache-module.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/apache-module.eclass,v 1.25 2011/12/27 17:55:12 fauli Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/apache-module.eclass,v 1.26 2013/06/22 00:06:53 vapier Exp $ # @ECLASS: apache-module.eclass # @MAINTAINER: @@ -176,7 +176,7 @@ apache-module_src_install() { debug-print-function $FUNCNAME $* local CD_DIR=$(apache_cd_dir) - cd "${CD_DIR}" || die "cd ${CD_DIR} failed" + pushd "${CD_DIR}" >/dev/null || die "cd ${CD_DIR} failed" local MOD_FILE=$(apache_mod_file) @@ -207,6 +207,8 @@ apache-module_src_install() { [[ -n "${OTHER_DOCS}" ]] && dodoc ${OTHER_DOCS} [[ -n "${HTML_DOCS}" ]] && dohtml ${HTML_DOCS} fi + + popd >/dev/null } # @FUNCTION: apache-module_pkg_postinst -- cgit v1.2.3-65-gdbad